Limit number of concurrent executions in an activity

Hi,

Heres an example where I use a Java Semaphore in conjunction with the job executor. Hence this version does not tie up job executor threads.

The sample uses groovy and basically creates a static semaphore. Hence the concurrent resolution is at the granularity of a classloader. If you have a cluster, you will need to configure the semaphore as appropriate.

Semaphorev2.bpmn (11.7 KB)

regards

Rob

5 Likes