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: schema/workflow.json
+5-6Lines changed: 5 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -840,21 +840,20 @@
840
840
"completionType": {
841
841
"type": "string",
842
842
"enum": [
843
-
"and",
844
-
"xor",
845
-
"n_of_m"
843
+
"allOf",
844
+
"atLeast"
846
845
],
847
846
"description": "Option types on how to complete branch execution.",
848
-
"default": "and"
847
+
"default": "allOf"
849
848
},
850
-
"n": {
849
+
"numCompleted": {
851
850
"type": [
852
851
"number",
853
852
"string"
854
853
],
855
854
"minimum": 0,
856
855
"minLength": 0,
857
-
"description": "Used when completionType is set to 'n_of_m' to specify the 'N' value"
856
+
"description": "Used when completionType is set to 'atLeast' to specify the minimum number of branches that must complete before the state will transition."
Copy file name to clipboardExpand all lines: specification.md
+8-9Lines changed: 8 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3172,8 +3172,8 @@ Delay state waits for a certain amount of time before transitioning to a next st
3172
3172
| name | State name | string | yes |
3173
3173
| type | State type | string | yes |
3174
3174
| [branches](#parallel-state-branch) | List of branches for this parallel state| array | yes |
3175
-
| completionType | Option types on how to complete branch execution. Default is "and" | enum | no |
3176
-
| n | Used when branchCompletionType is set to `n_of_m` to specify the `n` value. | string or number | no |
3175
+
| completionType | Option types on how to complete branch execution. Default is "allOf" | enum | no |
3176
+
| numCompleted | Used when branchCompletionType is set to `atLeast` to specify the least number of branches that must complete in order for the state to transition/end. | string or number | no |
3177
3177
| [stateDataFilter](#State-data-filters) | State data filter | object | no |
3178
3178
| [onErrors](#Error-Definition) | States error handling and retries definitions | array | no |
3179
3179
| [transition](#Transitions) | Next transition of the workflow after all branches have completed execution | object | yes (if end is not defined) |
@@ -3197,7 +3197,7 @@ Delay state waits for a certain amount of time before transitioning to a next st
3197
3197
{
3198
3198
"name":"ParallelExec",
3199
3199
"type":"parallel",
3200
-
"completionType": "and",
3200
+
"completionType": "allOf",
3201
3201
"branches": [
3202
3202
{
3203
3203
"name": "Branch1",
@@ -3236,7 +3236,7 @@ Delay state waits for a certain amount of time before transitioning to a next st
3236
3236
```yaml
3237
3237
name: ParallelExec
3238
3238
type: parallel
3239
-
completionType: and
3239
+
completionType: allOf
3240
3240
branches:
3241
3241
- name: Branch1
3242
3242
actions:
@@ -3261,14 +3261,13 @@ end: true
3261
3261
3262
3262
Parallel state defines a collection of `branches` that are executed in parallel.
3263
3263
A parallel state can be seen a state which splits up the current workflow instance execution path
3264
-
into multiple ones, one for each of each branch. These execution paths are performed in parallel
3264
+
into multiple ones, one for each branch. These execution paths are performed in parallel
3265
3265
and are joined back into the current execution path depending on the defined `completionType` parameter value.
3266
3266
3267
3267
The "completionType" enum specifies the different ways of completing branch execution:
3268
-
* and: All branches must complete execution before state can perform its transition. This is the default value in case this parameter is not defined in the parallel state definition.
3269
-
* xor: State can transition when one of the branches completes execution
3270
-
* n_of_m: State can transition once `n` number of branches have completed execution. In this case you should also
3271
-
specify the `n` property to define this number.
3268
+
* allOf: All branches must complete execution before the state can transition/end. This is the default value in case this parameter is not defined in the parallel state definition.
3269
+
* atLeast: State can transition/end once at least the specified number of branches have completed execution. In this case you must also
3270
+
specify the `numCompleted` property to define this number.
3272
3271
3273
3272
Exceptions may occur during execution of branches of the Parallel state, this is described in detail in [this section](#parallel-state-exceptions).
0 commit comments