Skip to content

Commit ef6fe8b

Browse files
authored
Merge pull request #1060 from neuroglia-io/feat-document-flow-directive-scope
Add warnings about flow directives being able to only target tasks defined in the same scope
2 parents 2905a52 + 9bc823a commit ef6fe8b

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

dsl-reference.md

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

1122+
> [!WARNING]
1123+
> Flow directives may only redirect to tasks declared within their own scope. In other words, they cannot target tasks at a different depth.
1124+
11221125
### External Resource
11231126

11241127
Defines an external resource.

dsl.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,9 @@ 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+
> [!WARNING]
187+
> Flow directives may only redirect to tasks declared within their own scope. In other words, they cannot target tasks at a different depth.
188+
186189
### Data Flow
187190

188191
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)