Skip to content

Commit d69b15d

Browse files
committed
Add warnings about flow directives being able to only target tasks defined at the same scope
Closes #1012 Signed-off-by: Charles d'Avernas <charles.davernas@neuroglia.io>
1 parent 08af9e2 commit d69b15d

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

dsl-reference.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1110,6 +1110,8 @@ Flow Directives are commands within a workflow that dictate its progression.
11101110
| `"end"` | Provides a graceful conclusion to the workflow execution, signaling its completion explicitly. |
11111111
| `string` | Continues the workflow at the task with the specified name |
11121112

1113+
⚠️ Flow directives may only redirect to tasks declared within their own scope. In other words, they cannot target tasks at a different depth.
1114+
11131115
### External Resource
11141116

11151117
Defines an external resource.

dsl.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,8 @@ Once the task has been executed, different things can happen:
183183
- `fault`: the task raised an uncaught error, which abruptly halts the workflow's execution and makes it transition to `faulted` [status phase](#status-phases).
184184
- `end`: the task explicitly and gracefully ends the workflow's execution.
185185

186+
⚠️ Flow directives may only redirect to tasks declared within their own scope. In other words, they cannot target tasks at a different depth.
187+
186188
### Data Flow
187189

188190
In Serverless Workflow DSL, data flow management is crucial to ensure that the right data is passed between tasks and to the workflow itself.

0 commit comments

Comments
 (0)