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": "sit est sint minim in",
"description": "reprehenderit nulla voluptate",
"app": "ut velit officia",
"variables": {
"error": ""
},
"groups": [
"d721f8d095747c40a26e7fe7",
"6dee8005892dd301ee69a9c0",
"0a60bcd854ea574c50ae2625",
"4b6a87d8918b0626f6bad26b"
],
"x": 0.36142061281337046,
"y": 0.502092050209205,
"type": "operation",
"deprecated": false,
"scheduled": true,
"retrySettings": {
"state": [
"error"
],
"autoRetry": false,
"limit": 10,
"delay": 2000,
"count": 5
}
}
},
"transitions": {},
"groups": [
"07aff3771c5b19a1895908e6"
],
"_id": "5cb7b531d06cceb89fd21b1c",
"description": "anim",
"preAutomationTime": 250000,
"font_size": 12,
"created": "2022-06-17T01:35:26.951Z",
"created_by": "e24a95ece71715612bcde8b2",
"last_updated": "1946-10-14T03:42:29.523Z",
"last_updated_by": "e863fef5cd096824770992b3",
"lastUpdatedVersion": "incididunt sint eu",
"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"
]
]
]
}