[jboss-user] [jBPM] - Re: When to call kSession.dispose()?

Wooi Joe Chuah do-not-reply at jboss.com
Thu Apr 25 01:59:43 EDT 2013


Wooi Joe Chuah [https://community.jboss.org/people/joe.chuah] created the discussion

"Re: When to call kSession.dispose()?"

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

--------------------------------------------------------------
If I'm not mistaken.

Your process can either work in 2 ways.

First if the process completes without persistence (startProcess completes the entire processInstance). Hence, the ksession within the workItems are still there before dispose is called.

Second scenario is with persistence. When your process stops somewhere the current processInstanceInfo is saved. When you want to resume the process a new ksession is created and
the workItemHandlers are registered again. The processInstance can still proceed smoothly using the new ksession.
--------------------------------------------------------------

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

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/20130425/6746d6a5/attachment-0001.html 


More information about the jboss-user mailing list