Skip to content

Commit 0b67120

Browse files
committed
Set task to support direct runtime expression
Signed-off-by: Nyamath Shaik <nyamath.shaik@uipath.com>
1 parent 422410d commit 0b67120

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

dsl-reference.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -963,7 +963,7 @@ A task used to set data.
963963

964964
| Name | Type | Required | Description |
965965
|:--|:---:|:---:|:---|
966-
| set | `object` | `yes` | A name/value mapping of the data to set. |
966+
| set | `object` | `string` | `yes` | A name/value mapping of the data to set. Can be an object or a direct runtime expression. |
967967

968968
##### Examples
969969

@@ -979,6 +979,8 @@ do:
979979
shape: circle
980980
size: ${ .configuration.size }
981981
fill: ${ .configuration.fill }
982+
- setColor:
983+
set: ${ .configuration.color }
982984
```
983985

984986
#### Switch

examples/set.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ schedule:
99
with:
1010
type: io.serverlessworkflow.samples.events.trigger.v1
1111
do:
12-
- initialize:
12+
- initializeObject:
1313
set:
14-
startEvent: ${ $workflow.input[0] }
14+
startEvent: ${ $workflow.input[0] }
15+
status: active
16+
17+
- initializeString:
18+
set: ${ $workflow.input[0] }

0 commit comments

Comments
 (0)