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

--------------------------------------------------------------
Hello,
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
[https://community.jboss.org/message/752417#752417]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to