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
[
https://community.jboss.org/message/755783#755783]
Start a new discussion in jBPM at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]