cancel
Showing results for 
Search instead for 
Did you mean: 

Making multiple sub processes from one process

ericsnyder
Champ on-the-rise
Champ on-the-rise
I need to design a process (tool process) that drives the making of a tool. That tool has anywhere from zero to multiple parts that feed into the tool. I want the tool process to start another process (part) for each part that is needed. I then want the tool process to wait until all the parts (zero - ???) are finished. Each part has some information that is unique to that part.

I have no idea how to accomplish this. Can someone please point me in the right direction?
8 REPLIES 8

frederikherema1
Star Contributor
Star Contributor
You can have a parallel gateway in the main-process that has outgoing flows to subProcesses (or call activities). On these sequence-flows, you put a condition that only evaluates to true if the tool you're creating in the current process-instance, needs the particular part that the subprocess/callactivity handles.

As an alternative, if you have a single subprocess that handles ALL tool parts, you can create a multi-instance subprocess that is called X times (parallel or serial), where X is the number of parts involved. Internally, in the subprocess, the right logic is chosen for the part involved. When all part-subprocesses are finished, the main-process moves on…

ericsnyder
Champ on-the-rise
Champ on-the-rise
I *think* I understand:

Here is Version 1 you describe above:
http://i1266.photobucket.com/albums/jj532/flycast11/Version1.jpg

Here is version 2:
http://i1266.photobucket.com/albums/jj532/flycast11/Version2.jpg

Do I have what you are suggesting basically right?

ericsnyder
Champ on-the-rise
Champ on-the-rise
frederikheremans:

Thank you. I did not try Version 1 above but Version 2 works with a slight modification. Rather than using a sub process I used a call activity that calls a different process. When the process is started you can key in the number of parts you need. The first task in the called process is a task to enter information that is specific to the part being built in the sub process.

Thanks for the point in the right direction!

Hi Eric,

Could you share your work flow with calling activity that calls a different process

frederikherema1
Star Contributor
Star Contributor
Glad it helped! Thanks for sharing the solution.

gutlez
Champ in-the-making
Champ in-the-making
I'm pretty sure I put in a request a long time ago to implement Inclusive Gateways, which is what is really being asked for here.

jbarrez
Star Contributor
Star Contributor
And the inclusive gateway is implemented a long time ago in Activiti: http://activiti.org/userguide/index.html#bpmnInclusiveGateway

amruta_w
Star Collaborator
Star Collaborator

Hi Eric Snyder _

Even I have same question, if you have resolved please provide solution here.

Thanks

Amruta Wandakar