Skip to content

Commit 9ba4c3f

Browse files
committed
addressing PR comment reviews
Signed-off-by: Nyamath Shaik <nyamath.shaik@uipath.com>
1 parent f2f6ec3 commit 9ba4c3f

File tree

4 files changed

+25
-9
lines changed

4 files changed

+25
-9
lines changed

dsl-reference.md

Lines changed: 1 addition & 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 \| 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

examples/set-expression.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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] }

examples/set.yaml

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

schema/workflow.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff 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'

0 commit comments

Comments
 (0)