-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #155 from orkes-io/NOTASK-add-terminate-workflow
Add Terminate Workflow
- Loading branch information
Showing
3 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
--- | ||
sidebar_position: 4 | ||
--- | ||
|
||
# Terminate Workflow Task | ||
|
||
```json | ||
"type" : "TERMINATE_WORKFLOW" | ||
``` | ||
|
||
### Introduction | ||
TERMINATE_WORKFLOW is a task used to terminate one or more workflows using workflow IDs. | ||
|
||
### Use Cases | ||
Consider a use case where you want to terminate a long-running workflow (or a set of workflows) from another, unrelated workflow. | ||
|
||
### Configuration | ||
|
||
#### Input Configuration | ||
|
||
| Attribute | Description | | ||
|-------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ||
| workflowId | Either a workflow ID or a list of workflow IDs. | | ||
| terminationReason | Optional text used to update reason for termination of the workflows being terminated. | | ||
|
||
#### Output Configuration | ||
Task output will contain field "terminatedWorkflows" which is a set of workflow IDs corresponding to the workflows that were terminated. | ||
|
||
## Example | ||
|
||
Sample task | ||
|
||
```json | ||
{ | ||
"name": "terminate_workflow_example", | ||
"taskReferenceName": "terminate_wfs_1", | ||
"inputParameters": { | ||
"workflowId": ["0ea3b193-7268-4886-aa97-d6ed170de854", "${workflow.input.idProvidedFromWorkflowInput}"], | ||
"terminationReason": "Custom reason for termination" | ||
}, | ||
"type": "TERMINATE_WORKFLOW" | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters