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": "est esse anim",
"description": "pariatur ex fugiat exercitation sed",
"app": "ipsum minim reprehenderit",
"variables": {
"error": ""
},
"groups": [
"826660932873e0dee9a5cca1",
"a8104ff084491161d506f2f8",
"91cbb86b43340a8ee98bf3ea",
"7880cfb163d8990b6a6f7d23"
],
"x": 0.36142061281337046,
"y": 0.502092050209205,
"type": "operation",
"deprecated": true,
"scheduled": false,
"retrySettings": {
"state": [
"success"
],
"autoRetry": false,
"limit": 10,
"delay": 1000,
"count": 5
}
}
},
"transitions": {},
"groups": [
"bde71e96f5095dea28dc086b",
"39b21f1d0a9bbe562551ae95",
"b0200fcbf6d53a504cd26d42",
"f10e8e252099c8fa62bf127c"
],
"_id": "5cb7b531d06cceb89fd21b1c",
"description": "sed ad in veniam",
"preAutomationTime": 250000,
"font_size": 12,
"created": "1949-06-15T08:18:05.69Z",
"created_by": "479d5dda4914e643809177f5",
"last_updated": "2001-04-17T04:44:24.842Z",
"last_updated_by": "8c595a6ad6f838f52f68ed0f",
"lastUpdatedVersion": "ad consectetur",
"tags": [],
"canvasVersion": 2
}
}
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"
]
]
]
}