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: specification.md
+6-7Lines changed: 6 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4605,10 +4605,10 @@ For more information, see the [Workflow Error Handling](#Workflow-Error-Handling
4605
4605
| Parameter | Description | Type | Required |
4606
4606
| --- | --- | --- | --- |
4607
4607
| refName | The name of the error handler definition to reference. If set, all other properties are ignored. | string | no |
4608
-
| when | References the errors to handle. If null or empty, and if `exceptWhen` is null or empty, all errors are caught. | array of [errorRefs](#error-reference) | no |
4609
-
| exceptWhen | References the errors not to handle. If null or empty, and if `when` is null or empty, all errors are caught. | array of [errorRefs](#error-reference) | no |
4608
+
| when | References the errors to handle. If null or empty, and if `exceptWhen` is null or empty, all errors are caught. | array of [error references](#error-reference) | no |
4609
+
| exceptWhen | References the errors not to handle. If null or empty, and if `when` is null or empty, all errors are caught. | array of [error references](#error-reference) | no |
4610
4610
| retry | The retry policy to use, if any. If a string, references an existing [retry definition](#retry-definition). | string or [retry definition](#retry-definition) | no |
4611
-
| then | Defines the outcome, if any, when handling errors | [outcomeDef](#outcome-definition) | no |
4611
+
| then | Defines the outcome, if any, when handling errors | [outcome definition](#error-outcome-definition) | no |
4612
4612
4613
4613
4614
4614
<details><summary><strong>Click to view example definition</strong></summary>
@@ -4738,10 +4738,9 @@ By defining error policies, workflows can easily apply consistent error handling
4738
4738
4739
4739
| Parameter | Description | Type | Required |
4740
4740
| --- | --- | --- | --- |
4741
-
| compensate | If `true`, triggers workflow compensation, then proceeds to the current state's outcome. | boolean | yes if `end`, `transition` and `throw` are null, otherwise no. |
4742
-
| end | If `true`, ends the workflow. | boolean or [end definition](#end-definition) | yes if `compensate`, `transition` and `throw` are null, otherwise no. |
4743
-
| transition | Indicates that the the workflow should transition to the specified state when the error is handled. All potential other activities are terminated. | string or [transition](#transition-definition). | yes if `compensate`, `end` and `throw` are null, otherwise no. |
4744
-
| throw | Indicates that the handled error should be rethrown. If true, the error is re-thrown as is. Otherwise, configures the error to throw, potentially using runtime expressions. | boolean or [error throw definition](#error-throw-definition). | yes if `compensate`, `end` and `transition` are null, otherwise no. |
4741
+
| end | If `true`, ends the workflow. | boolean or [end definition](#end-definition) | yes if `transition` and `throw` are null, otherwise no. |
4742
+
| transition | Indicates that the the workflow should transition to the specified state when the error is handled. All potential other activities are terminated. | string or [transition](#transition-definition). | yes if `end` and `throw` are null, otherwise no. |
4743
+
| throw | Indicates that the handled error should be rethrown. If true, the error is re-thrown as is. Otherwise, configures the error to throw, potentially using runtime expressions. | boolean or [error throw definition](#error-throw-definition). | yes if `end` and `transition` are null, otherwise no. |
4745
4744
4746
4745
<details><summary><strong>Click to view example definition</strong></summary>
0 commit comments