@@ -643,7 +643,7 @@ a workflow with a single event state and show how data filters can be combined.
643
643
644
644
` ` ` json
645
645
{
646
- "name": "GreetCustomersWorkflow ",
646
+ "name": "greet-customers-workflow ",
647
647
"description": "Greet Customers when they arrive",
648
648
"version": "1.0.0",
649
649
"specVersion": "0.8",
@@ -1910,7 +1910,7 @@ we can use this expression in the workflow "version" parameter:
1910
1910
1911
1911
` ` ` json
1912
1912
{
1913
- "name": "MySampleWorkflow ",
1913
+ "name": "my-sample-workflow ",
1914
1914
"description": "Sample Workflow",
1915
1915
"version": "${ .inputVersion }",
1916
1916
"specVersion": "0.8"
@@ -1925,10 +1925,10 @@ definition "name" must be a constant value.
1925
1925
1926
1926
| Parameter | Description | Type | Required |
1927
1927
| --- | --- | --- | --- |
1928
- | name | Workflow definition unique identifier ( which must be human readable) | string | yes |
1929
- | version | Workflow version. MUST respect the [semantic versioning](https://semver.org/) format. If not provided, latest is assumed | string | no |
1928
+ | name | The name that identifies the workflow definition, and which, when combined with its version, forms a unique identifier. | string | yes |
1929
+ | version | Workflow version. MUST respect the [semantic versioning](https://semver.org/) format. If not provided, ` latest` is assumed | string | no |
1930
1930
| description | Workflow description | string | no |
1931
- | key | Expression that will be used to generate a domain-specific workflow instance identifier | string | no |
1931
+ | key | Optional expression that will be used to generate a domain-specific workflow instance identifier | string | no |
1932
1932
| annotations | List of helpful terms describing the workflows intended purpose, subject areas, or other important qualities | array | no |
1933
1933
| dataInputSchema | Used to validate the workflow data input against a defined JSON Schema| string or object | no |
1934
1934
| dataOutputSchema | Used to validate the workflow data output against a defined JSON Schema| string or object | no |
@@ -1962,7 +1962,7 @@ definition "name" must be a constant value.
1962
1962
1963
1963
` ` ` json
1964
1964
{
1965
- "name": "sampleWorkflow ",
1965
+ "name": "sample-workflow ",
1966
1966
"version": "1.0.0",
1967
1967
"specVersion": "0.8",
1968
1968
"description": "Sample Workflow",
@@ -1979,7 +1979,7 @@ definition "name" must be a constant value.
1979
1979
<td valign="top">
1980
1980
1981
1981
` ` ` yaml
1982
- name: sampleWorkflow
1982
+ name: sample-workflow
1983
1983
version: '1.0.0'
1984
1984
specVersion: '0.8'
1985
1985
description: Sample Workflow
@@ -2161,7 +2161,7 @@ Here is an example of using external resource for function definitions:
2161
2161
2162
2162
` ` ` json
2163
2163
{
2164
- "name": "sampleWorkflow ",
2164
+ "name": "sample-workflow ",
2165
2165
"version": "1.0.0",
2166
2166
"specVersion": "0.8",
2167
2167
"description": "Sample Workflow",
@@ -2197,7 +2197,7 @@ Here is an example of using external resource for event definitions:
2197
2197
2198
2198
` ` ` json
2199
2199
{
2200
- "name": "sampleWorkflow ",
2200
+ "name": "sample-workflow ",
2201
2201
"version": "1.0.0",
2202
2202
"specVersion": "0.8",
2203
2203
"description": "Sample Workflow",
@@ -2361,7 +2361,7 @@ Serverless Workflow defines the following Workflow States:
2361
2361
<td valign="top">
2362
2362
2363
2363
` ` ` yaml
2364
- name: MonitorVitals
2364
+ name: monitor-vitals
2365
2365
type: event
2366
2366
exclusive: true
2367
2367
onEvents:
@@ -3140,7 +3140,7 @@ and our workflow is defined as:
3140
3140
3141
3141
` ` ` json
3142
3142
{
3143
- "name": "SendConfirmationForCompletedOrders ",
3143
+ "name": "send-confirmation-for-completed-orders ",
3144
3144
"version": "1.0.0",
3145
3145
"specVersion": "0.8",
3146
3146
"start": "send-confirm-state",
@@ -3176,7 +3176,7 @@ and our workflow is defined as:
3176
3176
<td valign="top">
3177
3177
3178
3178
` ` ` yaml
3179
- name: SendConfirmationForCompletedOrders
3179
+ name: send-confirmation-for-completed-orders
3180
3180
version: '1.0.0'
3181
3181
specVersion: '0.8'
3182
3182
start: send-confirm-state
@@ -3454,7 +3454,7 @@ Example of a function definition configured to use an [auth definition](#Auth-De
3454
3454
3455
3455
` ` ` yaml
3456
3456
functions:
3457
- - name: SecuredFunctionInvocation
3457
+ - name: secured-function-invocation
3458
3458
operation: https://test.com/swagger.json#HelloWorld
3459
3459
authRef: My Basic Auth
3460
3460
` ` `
@@ -3463,7 +3463,7 @@ Example of a function definition configured to use an [auth definition](#Auth-De
3463
3463
3464
3464
` ` ` yaml
3465
3465
functions:
3466
- - name: SecuredFunctionInvocation
3466
+ - name: secured-function-invocation
3467
3467
operation: https://test.com/swagger.json#HelloWorld
3468
3468
authRef:
3469
3469
resource: My Basic Auth
@@ -3476,11 +3476,11 @@ This is done to avoid unnecessary repetitions of [auth definition](#Auth-Definit
3476
3476
3477
3477
` ` ` yaml
3478
3478
functions:
3479
- - name: MySecuredFunction1
3479
+ - name: secured-function-1
3480
3480
operation: https://secure.resources.com/myapi.json#helloWorld
3481
3481
authRef:
3482
3482
resource: My ApiKey Auth
3483
- - name: MySecuredFunction2
3483
+ - name: secured-function-2
3484
3484
operation: https://secure.resources.com/myapi.json#holaMundo
3485
3485
` ` `
3486
3486
@@ -5141,7 +5141,7 @@ Let's take a look at an example of additional properties:
5141
5141
5142
5142
` ` ` json
5143
5143
{
5144
- "name": "myworkflow ",
5144
+ "name": "my-workflow ",
5145
5145
"version": "1.0.0",
5146
5146
"specVersion": "0.8",
5147
5147
"description": "My Test Workflow",
@@ -5159,7 +5159,7 @@ Note the same can be also specified using workflow metadata, which is the prefer
5159
5159
5160
5160
` ` ` json
5161
5161
{
5162
- "name": "myworkflow ",
5162
+ "name": "my-workflow ",
5163
5163
"version": "1.0.0",
5164
5164
"specVersion": "0.8",
5165
5165
"description": "Py Test Workflow",
@@ -5555,18 +5555,18 @@ actions:
5555
5555
</tr>
5556
5556
</table>
5557
5557
5558
- In our example the first action named `MyFirstFunction ` is going to be retried according to the `FirstRetryStrategy `
5558
+ In our example the first action named `my-first-function ` is going to be retried according to the `first-retry-strategy `
5559
5559
retry policy
5560
5560
for all errors except `SomeErrorOne` and `SomeErrorTwo`.
5561
5561
5562
- The seconds action named `MySecondFunction ` is going to be retried according to the `SecondRetryStrategy `
5562
+ The seconds action named `my-second-function ` is going to be retried according to the `second-retry-strategy `
5563
5563
retry policy
5564
5564
for all errors except `SomeErrorTwo` and `SomeErrorThree`.
5565
5565
5566
- The third action named `MyThirdFunction ` is going to retried according to the default runtime retry policy.
5566
+ The third action named `my-third-function ` is going to retried according to the default runtime retry policy.
5567
5567
It will be retried for all errors both known (checked) as well as unknown (unckecked).
5568
5568
5569
- The fourth action named `MyFourthFunction ` is going to be retried according to the `DoNotRetryStrategy `
5569
+ The fourth action named `my-fourth-function ` is going to be retried according to the `no-retry-strategy `
5570
5570
retry policy which has the `maxAttempts` property set to `1`, meaning that this action will not be retried.
5571
5571
5572
5572
# ## Workflow Timeouts
@@ -5587,8 +5587,7 @@ timeout settings should take in effect.
5587
5587
To give an example, let's say that in our workflow definition we define the timeout for state execution :
5588
5588
5589
5589
` ` ` json
5590
- {
5591
- "name": "testWorkflow",
5590
+ "name": "test-workflow",
5592
5591
...
5593
5592
"timeouts": {
5594
5593
...
@@ -6304,7 +6303,7 @@ Here is an example of metadata attached to the core workflow definition:
6304
6303
6305
6304
` ` ` json
6306
6305
{
6307
- "name": "processSalesOrders ",
6306
+ "name": "process-sales-orders ",
6308
6307
"description": "Process Sales Orders",
6309
6308
"version": "1.0.0",
6310
6309
"specVersion": "0.8",
@@ -6340,7 +6339,7 @@ Implementations may use this keyword to give access to any relevant information
6340
6339
` ` ` json
6341
6340
6342
6341
{
6343
- "name": "processSalesOrders ",
6342
+ "name": "process-sales-orders ",
6344
6343
"description": "Process Sales Orders",
6345
6344
"version": "1.0.0",
6346
6345
"specVersion": "0.8",
0 commit comments