Summary
Find Forward Paths
Description
Find the paths between two Tasks in a Workflow by Task ids and Workflow details.
Route
POST /workflow_engine/findForwardPaths
Roles
admin
engineering
support
apiread
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
start_task |
string |
yes |
Id of the start Task. |
end_task |
string |
yes |
Id of the end Task. |
workflow_details |
object |
yes |
Workflow data which contain the tasks and transitions properties of the workflow. |
Copied to Clipboard
{
"start_task": "workflow_start",
"end_task": "workflow_end",
"workflow_details": {
"name": "My Workflow",
"type": "automation",
"tasks": {
"workflow_start": {
"name": "workflow_start",
"summary": "workflow_start",
"groups": [],
"x": 0.36142061281337046,
"y": 0.502092050209205
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": 0.36142061281337046,
"y": 0.502092050209205
},
"error_handler": {
"name": "childJob",
"summary": "cillum in",
"description": "voluptate ad dolor laboris veniam",
"app": "aliquip",
"variables": {
"error": ""
},
"groups": [
"ded9191becae325fb746c8d1"
],
"x": 0.36142061281337046,
"y": 0.502092050209205,
"type": "operation",
"deprecated": true,
"scheduled": true,
"retrySettings": {
"state": [
"failure",
"error",
"error",
"failure",
"failure"
],
"autoRetry": false,
"limit": 20,
"delay": 2000,
"count": 5
}
}
},
"transitions": {},
"groups": [
"51be19aa72618a78d0269b18",
"b8aa51ccac4f18660103b39e",
"9e4ac948fa4f88a3b37556b9",
"ac5c6398e35f5df068d8db94",
"60337a68e2b06a9173db7cae"
],
"_id": "4321abcdef694aa79dae47ad",
"description": "reprehenderit laboris aute adipisicing",
"preAutomationTime": 250000,
"font_size": 12,
"created": "1954-07-10T22:54:28.599Z",
"created_by": "9cf8ae2f46d063d86806768f",
"last_updated": "1969-04-01T23:34:37.718Z",
"last_updated_by": "46ef6ab7b2b48d6db179d871",
"lastUpdatedVersion": "in elit dolor deserunt",
"tags": [],
"canvasVersion": 1
}
}
Return
DetailsExampleSchema
Name |
Type |
Description |
all_paths |
array |
All valid paths between the Tasks. |
Copied to Clipboard
[
[
"workflow_start",
"workflow_end"
],
[
"workflow_start",
"abcd",
"workflow_end"
]
]
Copied to Clipboard
{
"title": "all_paths",
"type": "array",
"items": {
"type": "array",
"items": {
"$ref": "wfEngineCommon#/definitions/workflowTaskId"
}
},
"examples": [
[
[
"workflow_start",
"workflow_end"
],
[
"workflow_start",
"abcd",
"workflow_end"
]
]
]
}