[jboss-user] [jBPM] - Re: Asynchronous service tasks and transactions

Rahul Agrawal do-not-reply at jboss.com
Fri Aug 24 09:10:38 EDT 2012

Rahul Agrawal [https://community.jboss.org/people/rahulamt] created the discussion

"Re: Asynchronous service tasks and transactions"

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

I am saving sessions in a static variables and retrieving sessions from those static variables inside ebj. The error is even if I say the completeWorkItem(..) inside ejb or outside it, but always in a separate thread, the persistence context is not flushed. Essentially the workiteminfo entry is not removed for that workitem and  nodeinstancelog  and processinstancelog tables are also not updated. So there is inconsistency in the process state. But if i perform a new operation( any operation that will do some database transaction on jbpm database) like starting new process instance the persistence context is flushed.

Reply to this message by going to Community

Start a new discussion in jBPM at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120824/97ec0716/attachment.html 

More information about the jboss-user mailing list