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": "sunt ut amet ea exercitation",
"description": "pariatur voluptate occaecat in",
"app": "ut cupidatat fugiat voluptate ex",
"variables": {
"error": ""
},
"groups": [
"18a810b63ee3497a4f13663f",
"7086ec29549328c50873c6f5",
"d1d525ee9cf8b7f4699123a8",
"b11d368512333b52591deb65"
],
"x": 0.36142061281337046,
"y": 0.502092050209205,
"type": "operation",
"deprecated": false,
"scheduled": false,
"retrySettings": {
"state": [
"success",
"success"
],
"autoRetry": true,
"limit": 20,
"delay": 2000,
"count": 5
}
}
},
"transitions": {},
"groups": [
"1215429ce0db6dde0d4ce6d7",
"b969c6366bd870bc3c2d5296"
],
"_id": "5cb7b531d06cceb89fd21b1c",
"description": "irure consectetur dolore",
"preAutomationTime": 250000,
"font_size": 12,
"created": "1982-10-02T15:59:28.317Z",
"created_by": "6c8b5aceb6792e483dd86785",
"last_updated": "2019-04-24T08:19:40.572Z",
"last_updated_by": "6ae82ca4e507b8b7cddbddb2",
"lastUpdatedVersion": "voluptate id",
"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"
]
]
]
}