Skip to content

Commit b17752d

Browse files
docs: use transformed output as context
Signed-off-by: Matthias Pichler <[email protected]>
1 parent dfc61a6 commit b17752d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

dsl.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ flowchart TD
223223
task_raw_output -- Passed to --> task_output_as
224224
task_output_as -- Produces --> task_transformed_output
225225
task_output_as -- Set as --> output_arg
226-
task_raw_output -- Passed to --> task_export_as
226+
task_transformed_output -- Passed to --> task_export_as
227227
end
228228
229229
task_transformed_output -- Passed as raw input to --> next_task
@@ -284,7 +284,8 @@ This argument contains information about the runtime executing the workflow.
284284
|:-----|:----:|:------------|:--------|
285285
| name | `string` | The task's name. | `getPet` |
286286
| definition | `map` | The tasks definition (specified under the name) as a parsed object | `{ "call": "http", "with": { ... } }` |
287-
| input | `any` | The task's input *BEFORE* the `input.from` expression. For the result of `input.from` expression use the context of the runtime expression (for jq `.`) | - |
287+
| input | `any` | The task's *raw* input (i.e. *BEFORE* the `input.from` expression). For the result of `input.from` expression use the context of the runtime expression (for jq `.`) | - |
288+
| output | `any` | The task's *raw* output (i.e. *BEFORE* the `output.as` expression). | - |
288289
| startedAt.iso8601 | `string` | The start time of the task as a ISO 8601 date time string. It uses `T` as the date-time delimiter, either UTC (`Z`) or a time zone offset (`+01:00`). The precision can be either seconds, milliseconds or nanoseconds | `2022-01-01T12:00:00Z`, `2022-01-01T12:00:00.123456Z`, `2022-01-01T12:00:00.123+01:00` |
289290
| startedAt.epochMillis | `integer` | The start time of the task as a integer value of milliseconds since midnight of 1970-01-01 UTC | `1641024000123` (="2022-01-01T08:00:00.123Z") |
290291
| startedAt.epochNanos | `integer` | The start time of the task as a integer value of nanoseconds since midnight of 1970-01-01 UTC | `1641024000123456` (="2022-01-01T08:00:00.123456Z") |
@@ -295,7 +296,7 @@ This argument contains information about the runtime executing the workflow.
295296
|:-----|:----:|:------------|:--------|
296297
| id | `string` | A unique id of the workflow execution. Now specific format is imposed | UUIDv4: `4a5c8422-5868-4e12-8dd9-220810d2b9ee`, ULID: `0000004JFGDSW1H037G7J7SFB9` |
297298
| definition | `map` | The workflow's definition as a parsed object | `{ "document": { ... }, "do": [...] }` |
298-
| input | `any` | The workflow's input *BEFORE* the `input.from` expression. For the result of `input.from` expression use the `$input` argument | - |
299+
| input | `any` | The workflow's *raw* input (i.e *BEFORE* the `input.from` expression). For the result of `input.from` expression use the `$input` argument | - |
299300
| startedAt.iso8601 | `string` | The start time of the execution as a ISO 8601 date time string. It uses `T` as the date-time delimiter, either UTC (`Z`) or a time zone offset (`+01:00`). The precision can be either seconds, milliseconds or nanoseconds | `2022-01-01T12:00:00Z`, `2022-01-01T12:00:00.123456Z`, `2022-01-01T12:00:00.123+01:00` |
300301
| startedAt.epochMillis | `integer` | The start time of the execution as a integer value of milliseconds since midnight of 1970-01-01 UTC | `1641024000123` (="2022-01-01T08:00:00.123Z") |
301302
| startedAt.epochNanos | `integer` | The start time of the execution as a integer value of nanoseconds since midnight of 1970-01-01 UTC | `1641024000123456` (="2022-01-01T08:00:00.123456Z") |
@@ -309,7 +310,7 @@ The following table shows which arguments are available for each runtime express
309310
| Task `if` | Transformed task input | ||| ||||
310311
| Task definition | Transformed task input | ||| ||||
311312
| Task `output.as` | Raw task output | Transformed task output ||| ||||
312-
| Task `export.as` | Raw task output | `$context` |||||||
313+
| Task `export.as` | Transformed task output | `$context` |||||||
313314
| Workflow `output.as` | Last task's transformed output | Transformed workflow output || | || ||
314315

315316
### Fault Tolerance

0 commit comments

Comments
 (0)