[jboss-user] [jBPM] - Re: java threads creation during workflow/process

Jiri Svitak do-not-reply at jboss.com
Tue Aug 7 10:46:32 EDT 2012

Jiri Svitak [https://community.jboss.org/people/jsvitak] created the discussion

"Re: java threads creation during workflow/process"

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

I am not 100% sure, but as far as I know:

The jBPM doesn't start its own thread, it just borrows the calling thread and evaluates the business process. When it enters timer, human task or waiting service task, then it starts new threads for each of these items. When these items end their waiting (time elapsed, response arrived) then the engine starts again. So after you call method startProcess, then the engine finishes what is possible and returns, but the business process itself continues. For example that's why you should put every long time computation in service tasks instead of script tasks.

So the jBPM doesn't start a separate thread or OS process dedicated for the whole lifecycle of the business process. If I am wrong, then I hope that someone will me correct me.

Regarding your 2) - I don't understand your question. jBPM engine is usually embedded inside your own application. You can also use jbpm-console deployed on JBoss AS and start there business process instances remotely.

Hope this helps

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/20120807/85c88551/attachment.html 

More information about the jboss-user mailing list