File tree Expand file tree Collapse file tree 4 files changed +23
-6
lines changed Expand file tree Collapse file tree 4 files changed +23
-6
lines changed Original file line number Diff line number Diff line change @@ -962,8 +962,8 @@ A task used to set data.
962962# #### Properties
963963
964964| Name | Type | Required | Description |
965- |:--|:---:|:---:|:---|
966- | set | `object` | `yes` | A name/value mapping of the data to set. |
965+ |:------- |:------ :|:---------- :|:---------- ---|
966+ | set | `map` <br> `string` | `yes` | The data to set.<br>*Can be an object or a direct runtime expression.* |
967967
968968# #### Examples
969969
979979 shape: circle
980980 size: ${ .configuration.size }
981981 fill: ${ .configuration.fill }
982+ - setColor:
983+ set: ${ .configuration.color }
982984` ` `
983985
984986# ### Switch
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+ - initialize :
13+ set : ${ $workflow.input[0] }
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ schedule:
88 one :
99 with :
1010 type : io.serverlessworkflow.samples.events.trigger.v1
11- do :
11+ do :
1212 - initialize :
1313 set :
1414 startEvent : ${ $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
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