Skip to content

Commit 8e6f61b

Browse files
authored
Merge pull request #105 from tsurdilo/completionconditionup
update to completion type
2 parents 0eb97e5 + 5ef548c commit 8e6f61b

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

api/src/main/resources/schema/states/parallelstate.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@
1919
},
2020
"completionType": {
2121
"type" : "string",
22-
"enum": ["and", "xor", "n_of_m"],
22+
"enum": ["allOf", "atLeast"],
2323
"description": "Option types on how to complete branch execution.",
24-
"default": "and"
24+
"default": "allOf"
2525
},
26-
"n": {
26+
"numCompleted": {
2727
"type": "string",
2828
"default": "0",
29-
"description": "Used when completionType is set to 'n_of_m' to specify the 'N' value"
29+
"description": "Used when completionType is set to 'atLeast' to specify the minimum number of branches that must complete before the state will transition."
3030
},
3131
"usedForCompensation": {
3232
"type": "boolean",

api/src/test/resources/examples/parallel.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
{
99
"name": "ParallelExec",
1010
"type": "parallel",
11-
"completionType": "and",
11+
"completionType": "allOf",
1212
"branches": [
1313
{
1414
"name": "ShortDelayBranch",

api/src/test/resources/examples/parallel.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ start: ParallelExec
66
states:
77
- name: ParallelExec
88
type: parallel
9-
completionType: and
9+
completionType: allOf
1010
branches:
1111
- name: ShortDelayBranch
1212
workflowId: shortdelayworkflowid

diagram/src/test/resources/examples/parallel.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
{
99
"name": "ParallelExec",
1010
"type": "parallel",
11-
"completionType": "and",
11+
"completionType": "allOf",
1212
"branches": [
1313
{
1414
"name": "ShortDelayBranch",

diagram/src/test/resources/examples/parallel.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ start: ParallelExec
66
states:
77
- name: ParallelExec
88
type: parallel
9-
completionType: and
9+
completionType: allOf
1010
branches:
1111
- name: ShortDelayBranch
1212
workflowId: shortdelayworkflowid

0 commit comments

Comments
 (0)