1 of 1 people found this helpful
you mean that process is not reported as completed in history logs but it is in fact completed, right? If so, it could be a bug that is db specific. What db do you run with, is it oracle? Recently there was a fix for this but it was on master (6.0).
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. 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();
ProcessInstanceLog pil = em.find(ProcessInstanceLog.class,event.getProcessInstance().getId());