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": "cupidatat dolor sint commodo",
"description": "aute",
"app": "nisi cillum magna do",
"variables": {
"error": ""
},
"groups": [
"8cd28a440d64cfe8d0acd44d",
"373b26d18340cea270744643"
],
"x": 0.36142061281337046,
"y": 0.502092050209205,
"type": "operation",
"deprecated": false,
"scheduled": true,
"retrySettings": {
"state": [
"error",
"failure",
"failure"
],
"autoRetry": false,
"limit": 20,
"delay": 1000,
"count": 5
}
}
},
"transitions": {},
"groups": [
"bb80a16e2b4b2b8e6e999838",
"7ec608c5fbea0e96089ff050",
"a0917b3f53f5de60119941cd"
],
"_id": "4321abcdef694aa79dae47ad",
"description": null,
"preAutomationTime": 250000,
"font_size": 12,
"created": "1991-06-20T15:33:43.419Z",
"created_by": "a0aaf91d968e03828903e2f3",
"last_updated": "2011-05-15T15:38:16.175Z",
"last_updated_by": "0b6a66ef75de5f72da3a3875",
"lastUpdatedVersion": "quis pariatur in id cillum",
"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"
]
]
]
}