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": "Ut qui eiusmod commodo adipisicing",
"description": "sit",
"app": "labore dolore in cillum",
"variables": {
"error": ""
},
"groups": [
"30f018e1bb6b127d01545e2f",
"c9a687989616663b91bc5460",
"195a9df7773886cf2837d0ad"
],
"x": 0.36142061281337046,
"y": 0.502092050209205,
"type": "operation",
"deprecated": true,
"scheduled": false,
"retrySettings": {
"state": [
"failure"
],
"autoRetry": true,
"limit": 10,
"delay": 2000,
"count": 5
}
}
},
"transitions": {},
"groups": [
"409854197e664f6ac2796c3b",
"03d66ba53f5cf442c8560fe1",
"1be9a67257dda6c51dba6989",
"4b5b32ea018e6816b8a40ba9",
"15959a5a8edd5a63c02a44dc"
],
"_id": "4321abcdef694aa79dae47ad",
"description": "quis",
"preAutomationTime": 5000,
"font_size": 12,
"created": "1997-02-04T01:21:52.642Z",
"created_by": "968c5f066a415d8c0b01d9b5",
"last_updated": "2015-11-07T09:04:24.929Z",
"last_updated_by": "9bb420840d5ab54bd068f3d6",
"lastUpdatedVersion": "Excepteur cupidatat exercitation est nostrud",
"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"
]
]
]
}