[jboss-user] [jBPM] - How to Start a Fire-and-Forget Process by another Process?

Bruce Cui do-not-reply at jboss.com
Mon Jun 27 09:05:42 EDT 2011

Bruce Cui [http://community.jboss.org/people/brucecui] created the discussion

"How to Start a Fire-and-Forget Process by another Process?"

To view the discussion, visit: http://community.jboss.org/message/612102#612102

For the recent days I have been fighting with the 5.1 release for a solution of backend batch processes. 

For multi-threading, I take an alternative that put the logic in a Thread instance, and start it in the work item handler. Further more, for time consuming tasks, even it's in main signle process, since I found the console was actually running all processes in one main thread, I put the logic in a Thread instance too, and put a signal event after the task. When the thread finishes, it sends back a signal to the process instance and the process will continue. This can make the main thread less occupied, so that other processes can have time to run. These are all alternatives since the framework itself cannot satisfy my expectation by default.

Now I'm thinking how to start one process by another in a fire-and-forget manner. I did some test. By default, even I set the sub-process's "wait for completion" to "false", the parent process would still wait for sub's completion. The exception seems to be that when the sub met some event node, say a timer, even with "delay" set to 0ms, the parent could take the running back.

So I'm thinking to put a timer at the beginning of the sub, right after the start node, which would be another alternative.

Could you kindly advise, whether there are any more appropriate means to fulfill the expected functionalities?

BTW, I see there is a "Timers" property in some task nodes. But there seems no corresponding content in the user guide. Could you advise on it's function as well?



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/20110627/57b95c85/attachment.html 

More information about the jboss-user mailing list