You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dsl.md
+25-2Lines changed: 25 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -202,11 +202,34 @@ When the evaluation of an expression fails, runtimes **must** raise an error wit
202
202
203
203
| Name | Type | Description |
204
204
|:-----|:----:|:------------|
205
-
| context |`map`| The task's context data. |
205
+
| context |`any`| The task's context data. |
206
206
| input |`any`| The task's filtered input. |
207
207
| 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. |
208
208
| 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") |
0 commit comments