Skip to content

Commit 36ec4ed

Browse files
authored
Merge pull request #1041 from fjtirado/Fix_#1040
[Fix #1040] Set behaviour clarification
2 parents 619fe91 + b5f0663 commit 36ec4ed

File tree

3 files changed

+12
-26
lines changed

3 files changed

+12
-26
lines changed

dsl-reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ The Serverless Workflow DSL defines a list of [tasks](#task) that **must be** su
243243
- [Raise](#raise), used to raise an [error](#error) and potentially fault the [workflow](#workflow).
244244
- [Run](#run), used to run a [container](#container-process), a [script](#script-process) , a [shell](#shell-process) command or even another [workflow](#workflow-process).
245245
- [Switch](#switch), used to dynamically select and execute one of multiple alternative paths based on specified conditions
246-
- [Set](#set), used to dynamically set or update the [workflow](#workflow)'s data during the its execution.
246+
- [Set](#set), used to dynamically set the [workflow](#workflow)'s data during the its execution.
247247
- [Try](#try), used to attempt executing a specified [task](#task), and to handle any resulting [errors](#error) gracefully, allowing the [workflow](#workflow) to continue without interruption.
248248
- [Wait](#wait), used to pause or wait for a specified duration before proceeding to the next task.
249249

dsl.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ The Serverless Workflow DSL defines several default [task](dsl-reference.md#task
131131
- [Listen](dsl-reference.md#listen), used to listen for an [event](dsl-reference.md#event) or more.
132132
- [Raise](dsl-reference.md#raise), used to raise an [error](dsl-reference.md#error) and potentially fault the [workflow](dsl-reference.md#workflow).
133133
- [Run](dsl-reference.md#run), used to run a [container](dsl-reference.md#container-process), a [script](dsl-reference.md#script-process), a [shell](dsl-reference.md#shell-process) command or even another [workflow](dsl-reference.md#workflow-process).
134-
- [Set](dsl-reference.md#set), used to dynamically set or update the [workflow](dsl-reference.md#workflow)'s data during the its execution.
134+
- [Set](dsl-reference.md#set), used to dynamically set the [workflow](dsl-reference.md#workflow)'s data during the its execution.
135135
- [Switch](dsl-reference.md#switch), used to dynamically select and execute one of multiple alternative paths based on specified conditions
136136
- [Try](dsl-reference.md#try), used to attempt executing a specified [task](dsl-reference.md#task), and to handle any resulting [errors](dsl-reference.md#error) gracefully, allowing the [workflow](dsl-reference.md#workflow) to continue without interruption.
137137
- [Wait](dsl-reference.md#wait), used to pause or wait for a specified duration before proceeding to the next task.

examples/switch-then-string.yaml

Lines changed: 10 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -15,31 +15,17 @@ do:
1515
- default:
1616
then: handleUnknownOrderType
1717
- processElectronicOrder:
18-
do:
19-
- validatePayment:
20-
set:
21-
validate: true
22-
- fulfillOrder:
23-
set:
24-
status: fulfilled
18+
set:
19+
validate: true
20+
status: fulfilled
2521
then: exit
2622
- processPhysicalOrder:
27-
do:
28-
- checkInventory:
29-
set:
30-
inventory: clear
31-
- packItems:
32-
set:
33-
items: 1
34-
- scheduleShipping:
35-
set:
36-
address: Elmer St
23+
set:
24+
inventory: clear
25+
items: 1
26+
address: Elmer St
3727
then: exit
3828
- handleUnknownOrderType:
39-
do:
40-
- logWarning:
41-
set:
42-
log: warn
43-
- notifyAdmin:
44-
set:
45-
message: something's wrong
29+
set:
30+
log: warn
31+
message: something's wrong

0 commit comments

Comments
 (0)