Skip to content

Commit

Permalink
draft of initial converging gateway docs
Browse files Browse the repository at this point in the history
  • Loading branch information
conceptualshark committed Sep 20, 2024
1 parent 72881cf commit 4f0b971
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@ title: "Inclusive gateway"
description: "An inclusive gateway (or OR-gateway) allows you to make multiple decisions based on data."
---

:::note

Currently, Camunda 8 only supports the diverging (i.e. splitting, forking) inclusive gateway. It does not yet support the converging (i.e. merging, joining) inclusive gateway. A combination of parallel and exclusive gateways can be used as an alternative way to merge the flows.

:::

The inclusive gateway (or OR-gateway) allows for making multiple decisions based on data (i.e. on process instance variables).

![A process model to prepare lunch at lunchtime can use an inclusive gateway to decide which steps to take to prepare the different lunch components, e.g. cook pasta,stir-fry steak, prepare salad, or any combination of these.](assets/inclusive-gateway.png)
Expand All @@ -34,6 +28,12 @@ For example: No courses selected then the default flow is taken.

![An inclusive gateway has decided to take the step to prepare salad as the default because none of the conditions were fulfilled.](assets/inclusive-gateway-default.png)

A converging exclusive gateway, also known as a merging or joining exclusive gateway, waits until an all incoming, executed sequence flows have arrived. In other words, a converging inclusive gateway will only wait for the incoming sequence flows that are executed. After the join, the process continues past the converging inclusive gateway.

For example: Once all selected courses are complete, the table can be cleared.

![An inclusive converging gateway waits until all incoming, executed sequence flows are completed before cleaning the table.](assets/inclusive-gateway-join.png)

## Conditions

A `conditionExpression` defines when a flow is taken. It is a [boolean expression](/components/modeler/feel/language-guide/feel-boolean-expressions.md) that can access the process instance variables and compare them with literals or other variables. The condition is fulfilled when the expression returns `true`.
Expand Down

0 comments on commit 4f0b971

Please sign in to comment.