[jboss-user] [jBPM] - Re: Jbpm 5 weird behavior starting a process

doboss do-not-reply at jboss.com
Thu Jan 10 13:20:57 EST 2013


doboss [https://community.jboss.org/people/doboss] created the discussion

"Re: Jbpm 5 weird behavior starting a process"

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

--------------------------------------------------------------
Right, I was thinking you *should* be disposing of the ksession (and maybe this is causing multiple processes to get started). You can keep the KnowledgeBase around, and still dispose the KnowledgeSession:



A knowledge base can be shared across sessions and usually is only created once, at the start of the application (as creating a knowledge base can be rather heavy-weight as it involves parsing and compiling the process definitions).  Knowledge bases can be dynamically changed (so you can add or remove processes at runtime).
Sessions can be created based on a knowledge base and are used to execute processes and interact with the engine.  You can create as many independent session as you need and creating a session is considered relatively lightweight.
--------------------------------------------------------------

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

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/20130110/cb00fb0e/attachment.html 


More information about the jboss-user mailing list