Skip to content

Commit 7fcc3ca

Browse files
Merge pull request #953 from matthias-pichler-warrify/workflow-task-arg
Specify task and workflow arguments
2 parents ca94f62 + 624d402 commit 7fcc3ca

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed

dsl.md

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,11 +202,34 @@ When the evaluation of an expression fails, runtimes **must** raise an error wit
202202

203203
| Name | Type | Description |
204204
|:-----|:----:|:------------|
205-
| context | `map` | The task's context data. |
205+
| context | `any` | The task's context data. |
206206
| input | `any` | The task's filtered input. |
207207
| 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. |
208208
| task | [`taskDescriptor`](#task-descriptor) | Describes the current task. |
209-
| workflow | [`workflowDescritor`](#workflow-descriptor) | Describes the current workflow. |
209+
| workflow | [`workflowDescriptor`](#workflow-descriptor) | Describes the current workflow. |
210+
211+
##### Task Descriptor
212+
213+
| Name | Type | Description | Example |
214+
|:-----|:----:|:------------|:--------|
215+
| name | `string` | The task's name. | `getPet` |
216+
| definition | `map` | The tasks definition (specified under the name) as a parsed object | `{ "call": "http", "with": { ... } }` |
217+
| 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 `.`) | - |
218+
| 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` |
219+
| 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") |
220+
| 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") |
221+
222+
##### Workflow Descriptor
223+
224+
225+
| Name | Type | Description | Example |
226+
|:-----|:----:|:------------|:--------|
227+
| id | `string` | A unique id of the workflow execution. Now specific format is imposed | UUIDv4: `4a5c8422-5868-4e12-8dd9-220810d2b9ee`, ULID: `0000004JFGDSW1H037G7J7SFB9` |
228+
| definition | `map` | The workflow's definition as a parsed object | `{ "document": { ... }, "do": [...] }` |
229+
| input | `any` | The workflow's input *BEFORE* the `input.from` expression. For the result of `input.from` expression use the `$input` argument | - |
230+
| 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` |
231+
| 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") |
232+
| 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") |
210233

211234
### Fault Tolerance
212235

0 commit comments

Comments
 (0)