Skip to content

update foreach state #119

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
Sep 4, 2021
Merged
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
13 changes: 11 additions & 2 deletions api/src/main/resources/schema/states/foreachstate.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
"type": "string",
"description": "Name of the iteration parameter that can be referenced in actions/workflow. For each parallel iteration, this param should contain an unique element of the inputCollection array"
},
"max": {
"batchSize": {
"type": "integer",
"default": "0",
"minimum": 0,
"description": "Specifies how upper bound on how many iterations may run in parallel"
"description": "Specifies how many iterations may run in parallel at the same time. Used if 'mode' property is set to 'parallel' (default)"
},
"actions": {
"type": "array",
Expand All @@ -39,6 +39,15 @@
"type": "boolean",
"default": false,
"description": "If true, this state is used to compensate another state. Default is false"
},
"mode": {
"type": "string",
"enum": [
"sequential",
"parallel"
],
"description": "Specifies how iterations are to be performed (sequentially or in parallel)",
"default": "parallel"
}
},
"oneOf": [
Expand Down