Skip to content

Commit 64ed919

Browse files
author
Tihomir Surdilovic
authored
Change onEvents actions to not be required property (#269)
Signed-off-by: Tihomir Surdilovic <[email protected]>
1 parent fe51b6d commit 64ed919

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

schema/workflow.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,7 @@
269269
}
270270
},
271271
"required": [
272-
"eventRefs",
273-
"actions"
272+
"eventRefs"
274273
]
275274
},
276275
"action": {
@@ -514,7 +513,7 @@
514513
},
515514
"onEvents": {
516515
"type": "array",
517-
"description": "Define what events trigger one or more actions to be performed",
516+
"description": "Define the events to be consumed and optional actions to be performed",
518517
"items": {
519518
"type": "object",
520519
"$ref": "#/definitions/onevents"

specification.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1143,7 +1143,7 @@ The following is a detailed description of each of the defined states.
11431143
| name | State name | string | yes |
11441144
| type | State type | string | yes |
11451145
| exclusive | If "true", consuming one of the defined events causes its associated actions to be performed. If "false", all of the defined events must be consumed in order for actions to be performed. Default is "true" | boolean | no |
1146-
| [onEvents](#eventstate-onevents) | Define the events to be consumed and one or more actions to be performed | array | yes |
1146+
| [onEvents](#eventstate-onevents) | Define the events to be consumed and optional actions to be performed | array | yes |
11471147
| [timeout](#eventstate-timeout) | Time period to wait for incoming events (ISO 8601 format). For example: "PT15M" (wait 15 minutes), or "P2DT3H4M" (wait 2 days, 3 hours and 4 minutes)| string | no |
11481148
| [stateDataFilter](#state-data-filter) | State data filter definition| object | no |
11491149
| [transition](#Transitions) | Next transition of the workflow after all the actions have been performed | object | yes |
@@ -1283,7 +1283,7 @@ the state should transition to the next state or can end the workflow execution
12831283
| --- | --- | --- | --- |
12841284
| eventRefs | References one or more unique event names in the defined workflow [events](#Event-Definition) | array | yes |
12851285
| actionMode | Specifies how actions are to be performed (in sequence of parallel). Default is "sequential" | string | no |
1286-
| [actions](#Action-Definition) | Actions to be performed | array | yes |
1286+
| [actions](#Action-Definition) | Actions to be performed | array | no |
12871287
| [eventDataFilter](#event-data-filter) | Event data filter definition | object | no |
12881288

12891289
<details><summary><strong>Click to view example definition</strong></summary>

0 commit comments

Comments
 (0)