Skip to content

update to completion type #105

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions api/src/main/resources/schema/states/parallelstate.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@
},
"completionType": {
"type" : "string",
"enum": ["and", "xor", "n_of_m"],
"enum": ["allOf", "atLeast"],
"description": "Option types on how to complete branch execution.",
"default": "and"
"default": "allOf"
},
"n": {
"numCompleted": {
"type": "string",
"default": "0",
"description": "Used when completionType is set to 'n_of_m' to specify the 'N' value"
"description": "Used when completionType is set to 'atLeast' to specify the minimum number of branches that must complete before the state will transition."
},
"usedForCompensation": {
"type": "boolean",
Expand Down
2 changes: 1 addition & 1 deletion api/src/test/resources/examples/parallel.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{
"name": "ParallelExec",
"type": "parallel",
"completionType": "and",
"completionType": "allOf",
"branches": [
{
"name": "ShortDelayBranch",
Expand Down
2 changes: 1 addition & 1 deletion api/src/test/resources/examples/parallel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ start: ParallelExec
states:
- name: ParallelExec
type: parallel
completionType: and
completionType: allOf
branches:
- name: ShortDelayBranch
workflowId: shortdelayworkflowid
Expand Down
2 changes: 1 addition & 1 deletion diagram/src/test/resources/examples/parallel.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{
"name": "ParallelExec",
"type": "parallel",
"completionType": "and",
"completionType": "allOf",
"branches": [
{
"name": "ShortDelayBranch",
Expand Down
2 changes: 1 addition & 1 deletion diagram/src/test/resources/examples/parallel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ start: ParallelExec
states:
- name: ParallelExec
type: parallel
completionType: and
completionType: allOf
branches:
- name: ShortDelayBranch
workflowId: shortdelayworkflowid
Expand Down