6.1 Gateways
A gateway is a decision point in a process flow where the flow can diverge or converge, directing the flow of execution based on certain conditions or rules. Gateways are used to control the path that process flows take depending on the logic of the process. They are essential for splitting or merging transitions in a workflow.
There are several types of gateways, each serving different purposes:
- Parallel Gateway: This type of gateway is used when multiple transitions or flows need to be executed simultaneously. It ensures that all outgoing flows are triggered at the same time, allowing parallel execution.
- Sequential Gateway: This gateway is used when multiple transitions or flows need to be executed in a specific, sequential order. The outgoing flows are triggered one after the other, following a predefined sequence.
- Multi Choice Gateway: A Multi-Choice Gateway is used when different transitions or flows are chosen based on a decision rule. It allows the process to branch into multiple paths depending on the conditions or rules applied at the gateway.
- Connector: A Connector helps connect two activities with a
different path (other than the default), in case the default path is overlapping an
existing flow.
Note:
If you use a Parallel or Multi Choice Gateway in your pipeline, ensure that after all the activities are added to these gateways, they are merged or closed again with a Parallel or Multi Choice Gateway, respectively. If there is no more activity to be performed after the Parallel or Multi Choice Gateway, it is mandatory to add an empty service task activity. Otherwise, the status is not updated correctly and the next activity execution does not happen.