Skip to content

Commit 365fcf0

Browse files
authored
Merge pull request #119 from tsurdilo/upforeachstate
update foreach state
2 parents 3b96c40 + 84ba774 commit 365fcf0

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

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

+11-2
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@
2121
"type": "string",
2222
"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"
2323
},
24-
"max": {
24+
"batchSize": {
2525
"type": "integer",
2626
"default": "0",
2727
"minimum": 0,
28-
"description": "Specifies how upper bound on how many iterations may run in parallel"
28+
"description": "Specifies how many iterations may run in parallel at the same time. Used if 'mode' property is set to 'parallel' (default)"
2929
},
3030
"actions": {
3131
"type": "array",
@@ -39,6 +39,15 @@
3939
"type": "boolean",
4040
"default": false,
4141
"description": "If true, this state is used to compensate another state. Default is false"
42+
},
43+
"mode": {
44+
"type": "string",
45+
"enum": [
46+
"sequential",
47+
"parallel"
48+
],
49+
"description": "Specifies how iterations are to be performed (sequentially or in parallel)",
50+
"default": "parallel"
4251
}
4352
},
4453
"oneOf": [

0 commit comments

Comments
 (0)