Skip to content

Commit d36bcc5

Browse files
tsurdiloricardozaniniTihomir Surdilovic
authored
Updated interrupt default property value to true (#393)
* Updated interrupt default property value to true Signed-off-by: Tihomir Surdilovic <[email protected]> * Update schema/workflow.json Co-authored-by: Ricardo Zanini <[email protected]> * update roadmap text for pr Signed-off-by: Tihomir Surdilovic <[email protected]> Co-authored-by: Ricardo Zanini <[email protected]> Co-authored-by: Tihomir Surdilovic <[email protected]>
1 parent 556b522 commit d36bcc5

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

examples/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2926,7 +2926,6 @@ This example shows the use of the workflow [execTimeout definition](../specifica
29262926
"start": "StartNewOrder",
29272927
"execTimeout": {
29282928
"duration": "PT30D",
2929-
"interrupt": true,
29302929
"runBefore": "CancelOrder"
29312930
},
29322931
"states": [
@@ -3086,7 +3085,6 @@ specVersion: '0.7'
30863085
start: StartNewOrder
30873086
execTimeout:
30883087
duration: PT30D
3089-
interrupt: true
30903088
runBefore: CancelOrder
30913089
states:
30923090
- name: StartNewOrder

roadmap/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ _Status description:_
3333
| ✔️| Add GraphQL support for function definitions | [spec doc](../specification.md) |
3434
| ✔️| Added "dataOnly" property to Event Definitions (allow event data filters to access entire event) | [spec doc](../specification.md) |
3535
| ✔️| Added support for Secrets and Constants | [spec doc](../specification.md) |
36+
| ✔️| Changed default value of execution timeout `interrupt` property. This is a non-backwards compatible changes. | [spec doc](../specification.md) |
3637
| 🚩 | Workflow invocation bindings | |
3738
| 🚩 | CE Subscriptions & Discovery | |
3839
| 🚩 | Error types | [issue](https://github.com/serverlessworkflow/specification/issues/200) |

schema/workflow.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@
216216
},
217217
"interrupt": {
218218
"type": "boolean",
219-
"description": "If `false`, workflow instance is allowed to finish current execution. If `true`, current workflow execution is abrupted.",
220-
"default": false
219+
"description": "If `false`, workflow instance is allowed to finish its current execution paths. If `true`, current workflow execution is stopped immediately. Default is `true`",
220+
"default": true
221221
},
222222
"runBefore": {
223223
"type": "string",
@@ -1738,4 +1738,4 @@
17381738
"required": []
17391739
}
17401740
}
1741-
}
1741+
}

specification.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1852,7 +1852,7 @@ Note the same can be also specified using workflow metadata, which is the prefer
18521852
| Parameter | Description | Type | Required |
18531853
| --- | --- | --- | --- |
18541854
| duration | Timeout duration (ISO 8601 duration format) | string | yes |
1855-
| interrupt | If `false`, workflow instance is allowed to finish current execution. If `true`, current workflow execution is stopped immediately. Default is `false` | boolean | no |
1855+
| interrupt | If `false`, workflow instance is allowed to finish its current execution paths. If `true`, current workflow execution is stopped immediately. Default is `true` | boolean | no |
18561856
| runBefore | Name of a workflow state to be executed before workflow instance is terminated | string | no |
18571857

18581858

@@ -1891,8 +1891,11 @@ runBefore: createandsendreport
18911891
The `duration` property defines the time duration of the execution timeout. Once a workflow instance is created,
18921892
and the amount of the defined time is reached, the workflow instance should be terminated.
18931893

1894-
The `interrupt` property defines if the currently running instance should be allowed to finish its current
1895-
execution flow before it needs to be terminated. If set to `true`, the current instance execution should stop immediately.
1894+
The `interrupt` property defines if the running workflow instance should be allowed to finish its current
1895+
execution flow before it needs to be terminated.
1896+
The default value of `interrupt` is `true`, meaning that the currently workflow execution should be terminated.
1897+
If set to `false`, the current execution path of the workflow execution should have a chance to complete (reach
1898+
an end definition).
18961899

18971900
The `runBefore` property defines a name of a workflow state to be executed before workflow instance is terminated.
18981901
States referenced by `runBefore` (as well as any other states that they transition to) must obey following rules:

0 commit comments

Comments
 (0)