Skip to content

Commit 0a0b685

Browse files
docs: update dsl to reflect option 4
Signed-off-by: Matthias Pichler <[email protected]>
1 parent de41643 commit 0a0b685

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

dsl.md

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ flowchart TD
188188
initial_context_arg([<code>$context</code>])
189189
context_arg([<code>$context</code>])
190190
input_arg([<code>$input</code>])
191+
output_arg([<code>$output</code>])
191192
192193
workflow_raw_input{{Raw Workflow Input}}
193194
workflow_input_from[Workflow: <code>input.from</code>]
@@ -221,7 +222,8 @@ flowchart TD
221222
task_definition -- Execution produces --> task_raw_output
222223
task_raw_output -- Passed to --> task_output_as
223224
task_output_as -- Produces --> task_transformed_output
224-
task_transformed_output -- Passed to --> task_export_as
225+
task_output_as -- Set as --> output_arg
226+
task_raw_output -- Passed to --> task_export_as
225227
end
226228
227229
task_transformed_output -- Passed as raw input to --> next_task
@@ -260,21 +262,22 @@ When the evaluation of an expression fails, runtimes **must** raise an error wit
260262
|:-----|:----:|:------------|
261263
| context | `map` | The task's context data. |
262264
| input | `any` | The task's transformed input. |
265+
| output | `any` | The task's transformed output. |
263266
| secrets | `map` | A key/value map of the workflow secrets.<br>To avoid unintentional bleeding, secrets can only be used in the `input.from` runtime expression. |
264267
| task | [`taskDescriptor`](#task-descriptor) | Describes the current task. |
265268
| workflow | [`workflowDescritor`](#workflow-descriptor) | Describes the current workflow. |
266269

267270
The following table shows which arguments are available for each runtime expression:
268271

269-
| Runtime Expression | Evaluated on | Produces | `$context` | `$input` | `$secrets` | `$task` | `$workflow` |
270-
|:-------------------|:---------:|:---------:|:---------:|:-------:|:---------:|:-------:|:----------:|
271-
| Workflow `input.from` | Raw workflow input | Transformed workflow input | | || ||
272-
| Task `input.from` | Raw task input (i.e. transformed workflow input for first task, transformed output from previous task otherwise) | Transformed task input || ||||
273-
| Task `if` | Transformed task input | ||||||
274-
| Task definition | Transformed task input | ||||||
275-
| Task `output.as` | Raw task output | Transformed task output ||||||
276-
| Task `export.as` | Transformed task output | `$context` ||||||
277-
| Workflow `output.as` | Last task's transformed output | Transformed workflow output || || ||
272+
| Runtime Expression | Evaluated on | Produces | `$context` | `$input` | `$output` | `$secrets` | `$task` | `$workflow` |
273+
|:-------------------|:---------:|:---------:|:---------:|:---------:|:-------:|:---------:|:-------:|:----------:|
274+
| Workflow `input.from` | Raw workflow input | Transformed workflow input | | | | | ||
275+
| Task `input.from` | Raw task input (i.e. transformed workflow input for first task, transformed output from previous task otherwise) | Transformed task input || | | |||
276+
| Task `if` | Transformed task input | ||| | |||
277+
| Task definition | Transformed task input | ||| | |||
278+
| Task `output.as` | Raw task output | Transformed task output ||| | |||
279+
| Task `export.as` | Raw task output | `$context` | ||||||
280+
| Workflow `output.as` | Last task's transformed output | Transformed workflow output || | | | ||
278281

279282
### Fault Tolerance
280283

0 commit comments

Comments
 (0)