HuiSheng Xu [
http://community.jboss.org/people/rebody] replied to the discussion
"Multi-threaded process execution?"
To view the discussion, visit:
http://community.jboss.org/message/550901#550901
--------------------------------------------------------------
Hi Chris,
Let jBPM 4 support real Multi-Thread will be a good research direction. But please notice
some thing. That the IoC containter of jBPM 4 based on the TheadLocal, so if you create
Multi-Thread in your custom activity, you maybe have to face some problems, e.g. you
cannot get components directly from Environment any more. And the transaction interceptor
should be rewrite for Multi-thread scenario, you have to find a way to notify the
interceptor when all of executions have completed, and whether the current transation
could commit or should rollback.
So the current implementation of jBPM 4 based on the single-thread scenario could simplify
many problem and easy to achieve. if you really want to achieve a Multi-Thread solution,
please consider about these.
Good Luck. :)
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/550901#550901]
Start a new discussion in jBPM at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]