[jboss-user] [jBPM] - What happened to the StatefulKnowledgeSession after process finished

TC ONG do-not-reply at jboss.com
Tue Feb 28 07:46:20 EST 2012


TC ONG [https://community.jboss.org/people/devilkazuya99] created the discussion

"What happened to the StatefulKnowledgeSession after process finished"

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

--------------------------------------------------------------
I have some codes like this in my main class:

StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();
ksession.getWorkItemManager().registerWorkItemHandler("Human Task", new WSHumanTaskHandler());

Map<String, Object> params = new HashMap<String, Object>();
params.put("username", "frank");
ksession.startProcess("humanTaskFlow", params);

Then I ran the process until finished.
If I look at the debug view in eclipse the thread is still running. Would it be an issue leave it running?

If I need to run multiple processes, should I create a session for each process? Would there be an overhead? Or I can use a session to run multiple processes?

Any reference about implementation in multiple user environment would be appreciated. 

Thanks.
--------------------------------------------------------------

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

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/20120228/eafb3c55/attachment.html 


More information about the jboss-user mailing list