File tree 4 files changed +23
-6
lines changed
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.
962
962
# #### Properties
963
963
964
964
| 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.* |
967
967
968
968
# #### Examples
969
969
979
979
shape: circle
980
980
size: ${ .configuration.size }
981
981
fill: ${ .configuration.fill }
982
+ - setColor:
983
+ set: ${ .configuration.color }
982
984
` ` `
983
985
984
986
# ### 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:
8
8
one :
9
9
with :
10
10
type : io.serverlessworkflow.samples.events.trigger.v1
11
- do :
11
+ do :
12
12
- initialize :
13
13
set :
14
14
startEvent : ${ $workflow.input[0] }
Original file line number Diff line number Diff line change @@ -767,11 +767,13 @@ $defs:
767
767
unevaluatedProperties : false
768
768
properties :
769
769
set :
770
- type : object
770
+ oneOf :
771
+ - type : object
772
+ minProperties : 1
773
+ additionalProperties : true
774
+ - type : string
771
775
title : SetTaskConfiguration
772
776
description : The data to set.
773
- minProperties : 1
774
- additionalProperties : true
775
777
switchTask :
776
778
type : object
777
779
$ref : ' #/$defs/taskBase'
You can’t perform that action at this time.
0 commit comments