Skip to content

Commit 2a36aae

Browse files
docs: add table for runtime arguments
Signed-off-by: Matthias Pichler <[email protected]>
1 parent 87337a6 commit 2a36aae

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

dsl.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,18 @@ When the evaluation of an expression fails, runtimes **must** raise an error wit
264264
| task | [`taskDescriptor`](#task-descriptor) | Describes the current task. |
265265
| workflow | [`workflowDescritor`](#workflow-descriptor) | Describes the current workflow. |
266266

267+
The following table shows which arguments are available for each runtime expression:
268+
269+
| Runtime Expression | Evaluated on | Produces | `$context` | `$input` | `$secrets` | `$task` | `$workflow` |
270+
|:-------------------|:---------:|:---------:|:---------:|:-------:|:---------:|:-------:|:----------:|
271+
| Workflow `input.from` | Raw workflow input | Filtered workflow input | | || ||
272+
| Task `input.from` | Raw task input (i.e. filtered workflow input for first task, filtered output from previous task otherwise) | Filtered task input || ||||
273+
| Task `if` | Filtered task input | ||||||
274+
| Task definition | Filtered task input | ||||||
275+
| Task `output.as` | Raw task output | Filtered task output ||||||
276+
| Task `export.as` | Filtered task output | `$context` ||||||
277+
| Workflow `output.as` | Last task's filtered output | Filtered workflow output || || ||
278+
267279
### Fault Tolerance
268280

269281
Serverless Workflow is designed with resilience in mind, acknowledging that errors are an inevitable part of any system. The DSL provides robust mechanisms to identify, describe, and handle errors effectively, ensuring the workflow can recover gracefully from failures.

0 commit comments

Comments
 (0)