You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/developer/bpmn/bpmn-gateways.mdx
+6-7Lines changed: 6 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,12 +24,11 @@ It goes on if all tokens have arrived.
24
24
The exclusive (XOR) and inclusive (OR) gateways for splitting a process flow are supported.
25
25
26
26
The conditions are part of the outgoing sequence flows inside a `conditionExpression`.
27
-
The condition needs to be single-line JavaScript code (see [Script Tasks](bpmn-script-task) which evaluates to a boolean.
28
-
On the engine, the code is taken and a `return` is put in front of it to get the result.
29
-
An outgoing sequence flow is only allowed to have _no_ condition, if the `default` attribute inside the gateway element is pointing to this sequence flow.
27
+
The condition needs to be single-line JavaScript code (see [Script Tasks](bpmn-script-task)) which evaluates to a boolean. In difference to Script Tasks, it is not necessary to use `variable.get()`. All process variables are directly accessable, e.g. `cost > 500`.
30
28
31
-
- the attribute `language` is optional because the `expressionLanguage` attribute in the overall process should already point to JavaScript
32
-
- the `name` of the sequence flow should give an explanation about the condition in natural language
29
+
- It is possible that exactly one outgoing sequence flow has _no_ condition, if the `default` attribute inside the gateway element is pointing to this sequence flow.
30
+
- The attribute `language` is optional because the `expressionLanguage` attribute in the overall process should already point to JavaScript
31
+
- The `name` of the sequence flow should give an explanation about the condition in natural language
33
32
34
33
```
35
34
...
@@ -39,13 +38,13 @@ An outgoing sequence flow is only allowed to have _no_ condition, if the `defaul
0 commit comments