cancel
Showing results for 
Search instead for 
Did you mean: 

can we queue instances for a given process

dmill
Champ in-the-making
Champ in-the-making
Hey guys,

I had a look around and couldn't find anything on this. I apologize if I missed something obvious but here's what I would like to do:

I was wondering if it was possible to queue process instances to ensure that there are only ever n number of concurrent instances.
For example, lets say we have process P.
I create 20 instances I1 to I20.
I would like to ensure that on 5 of those processes are running (say I1-I5) and that the others are queued.
When one of the instances has ended the system then runs one of the queued instances (I6 for example)

Is there any way to accomplish this? Maybe a way in the process definition to pause the instance and have it wait for others to terminate?

Thanks in advance.
2 REPLIES 2

dmill
Champ in-the-making
Champ in-the-making
PS: I wanted to add that the actual order the instances are run in doesn't matter.

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi dmill,

BPMN model in activiti does not cover resources now. If you want to support resources I would extend subproces to cover resources models and behaviour.

Regards
Martin