Gateways
Use a gateway when a process doesn't always continue the same way. Choose the right kind of gateway and put conditions on the paths that leave it.
How a gateway works
A gateway in Orchestra splits the process into several paths, or joins paths back together. Under Direction, choose Split (outgoing) or Merge (incoming).
The gateway itself has no conditions. You put them on the arrows that leave it. In the example below, the gateway Spoed? (urgent?) takes the path Spoed (urgent) when the priority of the service request is spoed, and the path Geen spoed (not urgent) otherwise.

Add conditions to a path
Select an arrow that leaves a gateway. Under Conditions, click Add, then choose a tag, a comparison and a value. If a path has more than one condition, all of them must be met.
You can use any tag that is known at that point in the process, such as a field of the record that started the process or the result of an earlier step.
On one path, select This is the default (fallback) path. The process takes that path when no other condition is met. Each gateway can have one default path.

When no path matches
If the process can't continue the way the gateway requires, the step stops with an error message. This happens when:
- no path, or more than one path, matches at an exclusive gateway
- no path matches at an inclusive gateway
A default path covers the case where no path matches. When an error occurs, the process instance stops at that step and StatusQuo shows the message.
Kinds of gateway
Exclusive (XOR) gateway
The process takes exactly one path. Make sure the conditions exclude each other, or set one default path.
When joining, each incoming path continues immediately, without waiting for the others.

Inclusive gateway (OR)
The process takes every path whose conditions are met. That can be one path, several or all of them.
When joining, the gateway waits for every path that started earlier.

Parallel gateway
The process always takes all paths at the same time. These paths have no conditions.
When joining, the gateway waits until all incoming paths have arrived.

Event-based gateway
This gateway waits for whatever happens first. Each path out of it begins with a waiting event, such as a waiting time or an incoming message. The path of the first event to occur continues, and the other paths are dropped.
For example, wait for the payment, but send a reminder after 48 hours.
See also
- Block types: every block at a glance
- Tags: use data in a condition
- Set up a BPMN process: how a process fits together
- Timer: waiting and time limits