Terminate task definition object
The Terminate task (identified by "type": "Terminate"
) terminates the workflow and marks it as a Completed
or Failed
.
Here is an example of failed task:
"Fail Task": {
"type": "Terminate",
"terminationStatus": "Failed"
}
Here is an example of completed task:
"Complete Task": {
"type": "Terminate",
"terminationStatus": "Completed"
}
Because Terminate tasks are terminal tasks, they have no nextTask
field.
The Terminate task has following additional fields:
Field |
Type |
Required |
Description |
---|---|---|---|
|
String |
Yes |
One of the following values:
|
|
JSON Object |
No |
JSON fragment of key-value pairs containing the mapping values from input or output of another task during the execution. |