Multiple ends after parallel gateway

Hey at all,

I was wondering: what happens if you start a parallel gateway which leads to two endings. Does the one ending wait for the other or does an ending immideatly ends a workflow?

image

So in this example, is this a valid workflow? What happens if task 1 is faster than task 2 and the ending 1 is reached. Is task 2 canceled and ending 2 is never reached or does the workflow wait for task 2 because its parallel?

Hi @Coach_Kerni,

in general, a process instances is ended after all token reached an end event.

In your case, the parallel gateway will split the single token into two. Both tokens have to reach their end event. No task is canceled.

If you want to cancel the other tasks, you have to use the terminate end event: Terminate Events | docs.camunda.org

Hope this helps, Ingo

1 Like