|
41 | 41 | - [Event State](#event-state)
|
42 | 42 | - [Operation State](#operation-state)
|
43 | 43 | - [Switch State](#switch-state)
|
44 |
| - - [Sleep State](#sleep-state) |
45 | 44 | - [Parallel State](#parallel-state)
|
46 | 45 | - [Inject State](#inject-state)
|
47 | 46 | - [ForEach State](#foreach-state)
|
@@ -2279,7 +2278,6 @@ Serverless Workflow defines the following Workflow States:
|
2279 | 2278 | | **[Event](#Event-State)** | Define events that trigger action execution | yes | yes | yes | yes | yes | no | yes | yes |
|
2280 | 2279 | | **[Operation](#Operation-State)** | Execute one or more actions | no | yes | yes | yes | yes | no | yes | yes |
|
2281 | 2280 | | **[Switch](#Switch-State)** | Define data-based or event-based workflow transitions | no | yes | no | yes | no | yes | yes | no |
|
2282 |
| -| **[Sleep](#Sleep-State)** | Sleep workflow execution for a specific time duration | no | yes | no | yes | no | no | yes | yes | |
2283 | 2281 | | **[Parallel](#Parallel-State)** | Causes parallel execution of branches (set of states) | no | yes | no | yes | yes | no | yes | yes |
|
2284 | 2282 | | **[Inject](#Inject-State)** | Inject static data into state data | no | yes | no | yes | no | no | yes | yes |
|
2285 | 2283 | | **[ForEach](#ForEach-State)** | Parallel execution of states for each element of a data array | no | yes | no | yes | yes | no | yes | yes |
|
@@ -2607,57 +2605,6 @@ The `timeouts` property can be used to define state specific timeout settings. S
|
2607 | 2605 | `stateExecTimeout` setting. If `eventConditions` is defined, the switch state can also define the
|
2608 | 2606 | `eventTimeout` property. For more information on workflow timeouts reference the [Workflow Timeouts](#Workflow-Timeouts) section.
|
2609 | 2607 |
|
2610 |
| -##### Sleep State |
2611 |
| - |
2612 |
| -| Parameter | Description | Type | Required | |
2613 |
| -| --- | --- | --- | --- | |
2614 |
| -| name | Unique State name. Must follow the [Serverless Workflow Naming Convention](#naming-convention) | string | yes | |
2615 |
| -| type | State type | string | yes | |
2616 |
| -| duration | Duration (ISO 8601 literal duration or an expression which evaluation results in an ISO 8601 duration) to sleep. For example: "PT15M" (sleep 15 minutes), or "P2DT3H4M" (sleep 2 days, 3 hours and 4 minutes), or $CONST.timeout, where timeout value is "PT15M" | string | yes | |
2617 |
| -| [transition](#Transitions) | Next transition of the workflow after the sleep | string or object | yes (if `end` is not defined) | |
2618 |
| -| [end](#End-Definition) | Is this state an end state | boolean or object | yes (if `transition` is not defined) | |
2619 |
| - |
2620 |
| -<details><summary><strong>Click to view example definition</strong></summary> |
2621 |
| -<p> |
2622 |
| - |
2623 |
| -<table> |
2624 |
| -<tr> |
2625 |
| - <th>JSON</th> |
2626 |
| - <th>YAML</th> |
2627 |
| -</tr> |
2628 |
| -<tr> |
2629 |
| -<td valign="top"> |
2630 |
| - |
2631 |
| -```json |
2632 |
| -{ |
2633 |
| - "name": "sleep-five-seconds", |
2634 |
| - "type": "sleep", |
2635 |
| - "duration": "PT5S", |
2636 |
| - "transition": "get-job-status" |
2637 |
| -} |
2638 |
| -``` |
2639 |
| - |
2640 |
| -</td> |
2641 |
| -<td valign="top"> |
2642 |
| - |
2643 |
| -```yaml |
2644 |
| -name: sleep-five-seconds |
2645 |
| -type: sleep |
2646 |
| -duration: PT5S |
2647 |
| -transition: get-job-status |
2648 |
| -``` |
2649 |
| - |
2650 |
| -</td> |
2651 |
| -</tr> |
2652 |
| -</table> |
2653 |
| - |
2654 |
| -</details> |
2655 |
| - |
2656 |
| -Sleep state |
2657 |
| -suspends workflow execution for a given time duration. The delay is defined in its `duration` property using the ISO 8601 |
2658 |
| -duration format. Note that ISO 8601 can be the result of evaluating an expression. |
2659 |
| - |
2660 |
| -Note that `transition` and `end` properties are mutually exclusive, meaning that you cannot define both of them at the same time. |
2661 | 2608 | ##### Parallel State
|
2662 | 2609 |
|
2663 | 2610 | | Parameter | Description | Type | Required |
|
@@ -5739,7 +5686,7 @@ not obeyed in the workflow definition.
|
5739 | 5686 |
|
5740 | 5687 | #### States Timeout Definition
|
5741 | 5688 |
|
5742 |
| -All workflow states except Sleep and Inject States can define the `timeouts` property and can define different timeout |
| 5689 | +All workflow states except Inject State can define the `timeouts` property and can define different timeout |
5743 | 5690 | settings depending on their state type.
|
5744 | 5691 | Please reference each [workflow state definitions](#Workflow-States) for more information on which
|
5745 | 5692 | timeout settings are available for each state type.
|
|
0 commit comments