[jboss-user] [jBPM] - Re: Simple process with WorkItemHandler doesn't end

Jim B do-not-reply at jboss.com
Mon Apr 29 15:58:00 EDT 2013


Jim B [https://community.jboss.org/people/jamesbeam] created the discussion

"Re: Simple process with WorkItemHandler doesn't end"

To view the discussion, visit: https://community.jboss.org/message/810837#810837

--------------------------------------------------------------
Thank you for the information.  Yes that is what I mean; and suspiciously, yes, I am running with Oracle (11g).  As you mentioned, it looks like the issue  https://issues.jboss.org/browse/JBPM-3719 https://issues.jboss.org/browse/JBPM-3719.  As a work-around until 6 is released, does it seem reasonable to just add an update statement into my ProcessEventListener?  Something like:

   EntityManagerFactory emf = Persistence.createEntityManagerFactory("org.jbpm.persistence.jpa");
   EntityManager em = emf.createEntityManager();
   em.getTransaction().begin();
   ProcessInstanceLog pil = em.find(ProcessInstanceLog.class,event.getProcessInstance().getId());
   pil.setEnd(new Date());
   pil.setStatus(2);
   em.getTransaction().commit();
   em.close();

Thanks again,
-J
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/810837#810837]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130429/791cab4e/attachment.html 


More information about the jboss-user mailing list