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

Kris Verlaenen do-not-reply at jboss.com
Mon Jun 27 19:34:42 EDT 2011

Kris Verlaenen [http://community.jboss.org/people/KrisVerlaenen] created the discussion

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

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

I suggest you take a look at the updated docs on multi-threading first, as it seems you're doing a lot of effort to make sure the second process executes on a separate thread while in general you can just use asynchronous tasks to make sure tasks are executed in parallel.  When you start a sub-process with wait for completion set to false, it will then start the sub-process and execute it until it reaches a wait state (which could be an asynchronous task, a timer node as you specified or even the end of the process).

It would be possible to execute a sub-process completely independent using a new thread as well if you don't require synchronisation.  It wouldn't be too difficult to implement this as a domain-specific service, where your handler would just call startProcess using a new Thread.

Regarding the timers property, this is available in the editor as it was supported in an older version.  The new BPMN2 language however has different constructs for modeling this type of behavior, like timer event, possibly as a boundary event, so it is not supported if you use BPMN2 as the underlying language.  That's also why it's not described in the documentation.


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/2464be6e/attachment.html 

More information about the jboss-user mailing list