Before it starts all previous tasks should be finished.

I have a task. Before it starts all previous tasks should be finished.
For example, a graph with paths 1> 2> 4 and 1> 3> 4. Task 4 before starting should wait until 2 and 3 will be finished.
Each task should be completed only once. By default, task 4 is executed twice.

How can I do this with JAVA?

Hi ua80669782699, since you are asking in a Camunda-Forum which focuses on BPMN, I think what you are looking for is an AND-Gateway or better know in the BPMN Domain as Paralell-Gateway.

The Process will first execute 1, thereafter the Process is split into two paralell running processes which will execute 2 and 3. Only when two Processes did arrive at “Paralell Gateway 2” 4 will be executed.

1 Like