Gateway errors

Errors about gateways in a BPMN process, including the deadlocks that make a process wait forever, with how to fix each one.

These errors are about gateways: what follows an event-based gateway, and merges that would wait forever. A process stuck that way is in deadlock. Each one says what it means and how to fix it.

Event-based gateway must lead to catch events or receive tasks

An event-based gateway waits for whichever event happens first. Each path out of it has to start with something that waits: an intermediate catch event, such as a timer or message, or a receive task. Change the step after the gateway to one of those, or use a decision gateway instead.

Joins branches of an exclusive split (deadlock)

A parallel gateway that merges paths waits for all of them to arrive. If those paths came from a decision gateway, only one of them is ever taken, so the parallel gateway waits forever. Change the merging gateway to an exclusive (XOR) gateway.

A decision's branches meet at a parallel gateway (deadlock)

The same deadlock happens when a decision sits inside parallel work, and its branches go straight into the parallel join. An example is a fraud check on one of two parallel paths. The join waits for each branch, but only one is taken.

Merge the decision's branches with an exclusive (XOR) gateway first, and lead that one flow into the parallel gateway. See Parallel work.

A loop comes back into one branch of a parallel join (deadlock)

A path after a parallel join loops back into only one of the branches the join waits for. An example is a dispute that sends a claim back for reassessment. On the next pass that branch arrives again, but the others don't run again, so the join waits forever.

Bring the loop back to a merge after the join, or to before the parallel split, so every branch runs again.

On this page