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
+38-18Lines changed: 38 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -37,8 +37,8 @@
37
37
+[Error](#error)
38
38
+[Error Filter](#error-filter)
39
39
+[Retry Policy](#retry-policy)
40
-
+[Input Data Model](#input-data-model)
41
-
+[Output Data Model](#output-data-model)
40
+
+[Input](#input)
41
+
+[Output](#output)
42
42
+[Timeout](#timeout)
43
43
+[Duration](#duration)
44
44
+[HTTP Response](#http-response)
@@ -58,18 +58,38 @@ A [workflow](#workflow) serves as a blueprint outlining the series of [tasks](#t
58
58
59
59
| Name | Type | Required | Description|
60
60
|:--|:---:|:---:|:---|
61
-
| document.dsl |`string`|`yes`| The version of the DSL used by the workflow. |
62
-
| document.namespace |`string`|`yes`| The workflow's namespace.<br> |
63
-
| document.name |`string`|`yes`| The workflow's name.<br> |
64
-
| document.version |`string`|`yes`| The workflow's [semantic version](#semantic-version). |
65
-
| document.title |`string`|`no`| The workflow's title. |
66
-
| document.summary |`string`|`no`| The workflow's Markdown summary. |
67
-
| document.tags |`map[string, string]`|`no`| A key/value mapping of the workflow's tags, if any. |
68
-
| input |[`inputDataModel`](#input-data-model)|`no`| Configures the workflow's input. |
61
+
| document |[`document`](#document)|`yes`| Documents the defined workflow. |
62
+
| input |[`inputDataModel`](#input)|`no`| Configures the workflow's input. |
69
63
| use |[`componentCollection`](#component-collection)|`no`| A collection containing the workflow's reusable components. |
70
64
| do |[`map[string, task]`](#task)|`yes`| The [task(s)](#task) that must be performed by the [workflow](#workflow). |
71
65
| timeout |[`timeout`](#timeout)|`no`| The configuration, if any, of the workflow's timeout. |
72
-
| output |[`outputDataModel`](#output-data-model)|`no`| Configures the workflow's output. |
66
+
| output |[`outputDataModel`](#output)|`no`| Configures the workflow's output. |
67
+
| schedule |[`schedule`](#schedule)|`no`| Configures the workflow's schedule, if any. |
68
+
69
+
#### Document
70
+
71
+
Documents the workflow definition.
72
+
73
+
| Name | Type | Required | Description|
74
+
|:--|:---:|:---:|:---|
75
+
| dsl |`string`|`yes`| The version of the DSL used to define the workflow. |
76
+
| namespace |`string`|`yes`| The workflow's namespace.<br> |
77
+
| name |`string`|`yes`| The workflow's name.<br> |
78
+
| version | `string` | `yes` | The workflow's [semantic version]
79
+
| title |`string`|`no`| The workflow's title. |
80
+
| summary |`string`|`no`| The workflow's Markdown summary. |
81
+
| tags |`map[string, string]`|`no`| A key/value mapping of the workflow's tags, if any. |
82
+
83
+
#### Schedule
84
+
85
+
Configures a workflow's schedule.
86
+
87
+
| Name | Type | Required | Description|
88
+
|:--|:---:|:---:|:---|
89
+
| every |[`duration`](#duration)|`no`| Specifies the duration of the interval at which the workflow should be executed. Unlike `after`, this option will run the workflow regardless of whether the previous run is still in progress.<br>*Required when no other property has been set.*|
90
+
| cron |`string`|`no`| Specifies the schedule using a CRON expression, e.g., '0 0 * * *' for daily at midnight.<br>*Required when no other property has been set.*|
91
+
| after |[`duration`](#duration)|`no`| Specifies a delay duration that the workflow must wait before starting again after it completes. In other words, when this workflow completes, it should run again after the specified amount of time.<br>*Required when no other property has been set.*|
92
+
| on |[`eventConsumptionStrategy`](#event-consumption-strategy)|`no`| Specifies the events that trigger the workflow execution.<br>*Required when no other property has been set.*|
73
93
74
94
#### Examples
75
95
@@ -182,8 +202,8 @@ The Serverless Workflow DSL defines a list of [tasks](#task) that **must be** su
182
202
183
203
| Name | Type | Required | Description|
184
204
|:--|:---:|:---:|:---|
185
-
| input |[`inputDataModel`](#input-data-model)|`no`| An object used to customize the task's input and to document its schema, if any. |
186
-
| output |[`outputDataModel`](#output-data-model)|`no`| An object used to customize the task's output and to document its schema, if any. |
205
+
| input |[`inputDataModel`](#input)|`no`| An object used to customize the task's input and to document its schema, if any. |
206
+
| output |[`outputDataModel`](#output)|`no`| An object used to customize the task's output and to document its schema, if any. |
187
207
| timeout |[`timeout`](#timeout)|`no`| The configuration of the task's timeout, if any. |
188
208
| then |[`flowDirective`](#flow-directive)|`no`| The flow directive to execute next.<br>*If not set, defaults to `continue`.*|
189
209
@@ -855,7 +875,7 @@ Serves as a mechanism within workflows to handle errors gracefully, potentially
855
875
| Name | Type | Required | Description|
856
876
|:--|:---:|:---:|:---|
857
877
| try | [`task`](#task) | `yes` | The task to perform. |
858
-
| catch | [`catchClause`](#catch-clause) | `yes` | Configures the errors to catch and how to handle them. |
878
+
| catch | [`catch`](#catch) | `yes` | Configures the errors to catch and how to handle them. |
859
879
860
880
##### Examples
861
881
@@ -888,9 +908,9 @@ do:
888
908
count: 5
889
909
```
890
910
891
-
##### Catch Clause
911
+
##### Catch
892
912
893
-
Defines the configuration of a concept used to catch errors
913
+
Defines the configuration of a catch clause, which a concept used to catch errors.
894
914
895
915
###### Properties
896
916
@@ -1292,7 +1312,7 @@ Represents the definition of the parameters that control the randomness or varia
1292
1312
1293
1313
```
1294
1314
1295
-
### Input Data Model
1315
+
### Input
1296
1316
1297
1317
Documents the structure - and optionally configures the filtering of - workflow/task input data.
1298
1318
@@ -1321,7 +1341,7 @@ schema:
1321
1341
from: .order.pet
1322
1342
```
1323
1343
1324
-
### Output Data Model
1344
+
### Output
1325
1345
1326
1346
Documents the structure - and optionally configures the filtering of - workflow/task output data.
0 commit comments