Skip to content

Commit d4ddcf7

Browse files
author
Tihomir Surdilovic
authored
Fix switch state event conditions required params + make default para… (#270)
* Fix switch state event conditions required params + make default param not required Signed-off-by: Tihomir Surdilovic <[email protected]> * fixed data bases switch required Signed-off-by: Tihomir Surdilovic <[email protected]>
1 parent 64ed919 commit d4ddcf7

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

schema/workflow.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -882,8 +882,7 @@
882882
"required": [
883883
"name",
884884
"type",
885-
"eventConditions",
886-
"default"
885+
"eventConditions"
887886
]
888887
},
889888
"databasedswitch": {
@@ -944,8 +943,7 @@
944943
"required": [
945944
"name",
946945
"type",
947-
"dataConditions",
948-
"default"
946+
"dataConditions"
949947
]
950948
},
951949
"defaultdef": {
@@ -1037,7 +1035,7 @@
10371035
},
10381036
"required": [
10391037
"eventRef",
1040-
"transition"
1038+
"end"
10411039
]
10421040
},
10431041
"datacondition": {

specification.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1950,7 +1950,7 @@ Once all actions have been performed, a transition to another state can occur.
19501950
| [stateDataFilter](#state-data-filter) | State data filter | object | no |
19511951
| [onErrors](#Error-Definition) | States error handling and retries definitions | array | no |
19521952
| eventTimeout | If eventConditions is used, defines the time period to wait for events (ISO 8601 format). For example: "PT15M" (15 minutes), or "P2DT3H4M" (2 days, 3 hours and 4 minutes)| string | yes only if eventConditions is defined |
1953-
| default | Default transition of the workflow if there is no matching data conditions or event timeout is reached. Can be a transition or end definition | object | yes |
1953+
| default | Default transition of the workflow if there is no matching data conditions or event timeout is reached. Can be a transition or end definition | object | no |
19541954
| [compensatedBy](#Workflow-Compensation) | Unique name of a workflow state which is responsible for compensation of this state | String | no |
19551955
| [usedForCompensation](#Workflow-Compensation) | If true, this state is used to compensate another state. Default is "false" | boolean | no |
19561956
| [metadata](#Workflow-Metadata) | Metadata information| object | no |

0 commit comments

Comments
 (0)