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": "nostrud laboris voluptate",
"description": "exercitation amet",
"app": "tempor id dolor exercitation esse",
"variables": {
"error": ""
},
"groups": [
"bacbd6303c41a4036b0b1c4b",
"74a9b7634b0859cb099790bf",
"ced7ab69c4be0397f37b7b82",
"85b5990040680f65b9a4970a"
],
"x": 0.36142061281337046,
"y": 0.502092050209205,
"type": "operation",
"deprecated": false,
"scheduled": false,
"retrySettings": {
"state": [
"success",
"success",
"error"
],
"autoRetry": false,
"limit": 10,
"delay": 1000,
"count": 5
}
}
},
"transitions": {},
"groups": [
"2e18b981bb611a33a523b4e5",
"39caa35f03032c07188b478b",
"aa3e65d6576204bc926b1b3d",
"c4d240f48564743ad1266a04",
"34c53b85deb148add69b64cd"
],
"_id": "4321abcdef694aa79dae47ad",
"description": "velit aliqua cupidatat",
"preAutomationTime": 5000,
"font_size": 12,
"created": "2011-09-06T05:26:02.394Z",
"created_by": "65adf4639dc088e9ea1e88dd",
"last_updated": "2001-05-22T02:23:44.295Z",
"last_updated_by": "d908a63fe15b4176a726ff11",
"lastUpdatedVersion": "aliqua Duis",
"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"
]
]
]
}