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-reference.md
+9-8Lines changed: 9 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -73,7 +73,7 @@ A [workflow](#workflow) serves as a blueprint outlining the series of [tasks](#t
73
73
| input |[`input`](#input)|`no`| Configures the workflow's input. |
74
74
| use |[`use`](#use)|`no`| Defines the workflow's reusable components, if any. |
75
75
| do |[`map[string, task][]`](#task)|`yes`| The [task(s)](#task) that must be performed by the [workflow](#workflow). |
76
-
| timeout |[`timeout`](#timeout)|`no`| The configuration, if any, of the workflow's timeout. |
76
+
| timeout |`string`<br>[`timeout`](#timeout)|`no`| The configuration, if any, of the workflow's timeout.<br>*If a `string`, must be the name of a [timeout](#timeout) defined in the [workflow's reusable components](#use).*|
77
77
| output |[`output`](#output)|`no`| Configures the workflow's output. |
78
78
| schedule |[`schedule`](#schedule)|`no`| Configures the workflow's schedule, if any. |
@@ -105,6 +105,7 @@ Defines the workflow's reusable components.
105
105
| functions |[`map[string, task]`](#task)|`no`| A name/value mapping of the workflow's reusable tasks. |
106
106
| retries |[`map[string, retryPolicy]`](#retry)|`no`| A name/value mapping of the workflow's reusable retry policies. |
107
107
| secrets |`string[]`|`no`| A list containing the workflow's secrets. |
108
+
| timeouts |[`map[string, timeout]`](#timeout)|`no`| A name/value mapping of the workflow's reusable timeouts. |
108
109
109
110
#### Schedule
110
111
@@ -252,7 +253,7 @@ The Serverless Workflow DSL defines a list of [tasks](#task) that **must be** su
252
253
| input | [`input`](#input) | `no` | An object used to customize the task's input and to document its schema, if any. |
253
254
| output | [`output`](#output) | `no` | An object used to customize the task's output and to document its schema, if any. |
254
255
| export | [`export`](#export) | `no` | An object used to customize the content of the workflow context. |
255
-
| timeout | [`timeout`](#timeout) | `no` | The configuration of the task's timeout, if any. |
256
+
| timeout | `string`<br>[`timeout`](#timeout) | `no` | The configuration of the task's timeout, if any.<br>*If a `string`, must be the name of a [timeout](#timeout) defined in the [workflow's reusable components](#use).* |
256
257
| then | [`flowDirective`](#flow-directive) | `no` | The flow directive to execute next.<br>*If not set, defaults to `continue`.* |
257
258
| metadata | `map` | `no` | Additional information about the task. |
258
259
@@ -653,7 +654,7 @@ Intentionally triggers and propagates errors. By employing the "Raise" task, wor
653
654
654
655
| Name | Type | Required | Description |
655
656
|:--|:---:|:---:|:---|
656
-
| raise.error | [`error`](#error) | `yes` | Defines the error to raise. |
657
+
| raise.error | `string`<br>[`error`](#error) | `yes` | Defines the [error](#error) to raise.<br>*If a `string`, must be the name of an [error](#error) defined in the [workflow's reusable components](#use).* |
657
658
658
659
##### Examples
659
660
@@ -1035,12 +1036,12 @@ Defines the configuration of a catch clause, which a concept used to catch error
1035
1036
1036
1037
| Name | Type | Required | Description |
1037
1038
|:--|:---:|:---:|:---|
1038
-
| errors | [`errorFilter`](#retry) | `no` | The definition of the errors to catch |
1039
+
| errors | [`errorFilter`](#retry) | `no` | The definition of the errors to catch. |
1039
1040
| as | `string` | `no` | The name of the runtime expression variable to save the error as. Defaults to 'error'. |
1040
-
| when | `string`| `no` | A runtime expression used to determine whether or not to catch the filtered error |
1041
-
| exceptWhen | `string` | `no` | A runtime expression used to determine whether or not to catch the filtered error |
1042
-
| retry | [`retryPolicy`](#retry) | `no` | The retry policy to use, if any, when catching errors |
1043
-
| do | [`map[string, task][]`](#task) | `no` | The definition of the task(s) to run when catching an error |
1041
+
| when | `string`| `no` | A runtime expression used to determine whether or not to catch the filtered error. |
1042
+
| exceptWhen | `string` | `no` | A runtime expression used to determine whether or not to catch the filtered error. |
1043
+
| retry | `string`<br>[`retryPolicy`](#retry) | `no` | The [`retry policy`](#retry) to use, if any, when catching [`errors`](#error).<br>*If a `string`, must be the name of a [retry policy](#retry) defined in the [workflow's reusable components](#use).* |
1044
+
| do | [`map[string, task][]`](#task) | `no` | The definition of the task(s) to run when catching an error. |
detail: ${ "The workflow '\( $workflow.definition.document.name ):\( $workflow.definition.document.version )' is a work in progress and cannot be run yet" }
0 commit comments