[jboss-user] [JBoss jBPM] - Re: How to coordinate amongst child & parent processes?

lachelt do-not-reply at jboss.com
Tue Jun 5 11:32:03 EDT 2007


Thanks Ed.  Sounds like there are a few different ways to do it.

Requirements:
* child process does not need to be independent of the parent process... that is we can write the parent & child together has a pair (or even a single process definition).
* user wants to be able to monitor the parent process to have visibility into the overall progress (e.g. how many of the children have completed their work)


I'm not sure how to define the process to use fork.  Would we write a simple custom node that "forks" the N children?  In that case there would only be a single leaving transition from the fork node... but that node would actually start up N tokens on that leaving transition.  

Then would we also have a custom join node that increments a process variable as each child joins back in (that would give a client visibility into the progress)?

Does that  make sense?  Or is there a way to achieve something similar with the built-in nodes?

Thanks, Jon

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4051428#4051428

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4051428



More information about the jboss-user mailing list