File tree Expand file tree Collapse file tree 4 files changed +25
-9
lines changed Expand file tree Collapse file tree 4 files changed +25
-9
lines changed Original file line number Diff line number Diff line change @@ -963,7 +963,7 @@ A task used to set data.
963963
964964| Name | Type | Required | Description |
965965|:--|:------------------:|:--------:|:---------------------------------------------------------------------|
966- | set | `object \| string` | `yes` | Can be an object or a direct runtime expression. |
966+ | set | `map` <br> ` string` | `yes` | Can be an object or a direct runtime expression. |
967967
968968# #### Examples
969969
Original file line number Diff line number Diff line change 1+ document :
2+ dsl : ' 1.0.0'
3+ namespace : test
4+ name : set
5+ version : ' 0.1.0'
6+ schedule :
7+ on :
8+ one :
9+ with :
10+ type : io.serverlessworkflow.samples.events.trigger.v1
11+ do :
12+ - initializeObject :
13+ set :
14+ startEvent : ${ $workflow.input[0] }
15+ status : active
16+
17+ - initializeString :
18+ set : ${ $workflow.input[0] }
Original file line number Diff line number Diff line change @@ -9,10 +9,6 @@ schedule:
99 with :
1010 type : io.serverlessworkflow.samples.events.trigger.v1
1111do :
12- - initializeObject :
12+ - initialize :
1313 set :
1414 startEvent : ${ $workflow.input[0] }
15- status : active
16-
17- - initializeString :
18- set : ${ $workflow.input[0] }
Original file line number Diff line number Diff line change @@ -767,11 +767,13 @@ $defs:
767767 unevaluatedProperties : false
768768 properties :
769769 set :
770- type : [object, string]
770+ oneOf :
771+ - type : object
772+ minProperties : 1
773+ additionalProperties : true
774+ - type : string
771775 title : SetTaskConfiguration
772776 description : The data to set.
773- minProperties : 1
774- additionalProperties : true
775777 switchTask :
776778 type : object
777779 $ref : ' #/$defs/taskBase'
You can’t perform that action at this time.
0 commit comments