edoc automate Guide
Breadcrumbs

Use gateways in a flow

You can use a Gateway element to model the workflow with branches. You can define conditions for certain gateways using comparison operators. The conditions are used to forward a workflow step to the next step accordingly.

Understanding gateways

  • Exclusive Gateway: The flow is continued with the outgoing sequence (connecting line to the next step) for which a condition applies first. The conditions are checked in order from top to bottom. You can also define a branch (connecting line with destination element) without a condition, which is always selected if no condition applies.

  • Inclusive Gateway: The flow is continued for each outgoing sequence for which a condition applies. The conditions are executed in sequence from top to bottom.

  • Parallel Gateway: The flow is continued in parallel at each outgoing sequence. No further configuration is required.

You can configure conditions for Inclusive Gateway and Exclusive Gateway. In conditions, the current value of individual variables can be compared with a fixed value or the value of another variable.

Let's assume you want to configure an exclusive Gateway element in a flow.

Here's how

  1. Select the corresponding Gateway element in the workflow. You can define the conditions in the detail area.

  2. Use Add to add a new condition. You can now define the condition step by step in the newly inserted line.

  3. Select a workflow variable under Variable, the comparison operator under Operator, and a fixed value or another workflow variable under Variable.

  4. Use Save to save the workflow diagram of the flow to apply the adjustments to the flow.

Recommendation: Name the gateway's outgoing sequence

Although all outgoing sequences of a gateway have an automatically generated name, it is not possible to identify the exact outgoing sequence.

Give each outgoing sequence of a gateway (connection line to the next element) a unique name. You can use the names in the workflow diagram to identify the outgoing sequence to which you have added the conditions at any time.

You add a name to an outgoing sequence by clicking on the corresponding connecting line starting from the gateway to open the text box.