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": "elit nulla",
"description": "qui",
"app": "officia tempor minim mollit",
"variables": {
"error": ""
},
"groups": [
"82105522585e2adb7bc1e95b",
"1495619c5e31e44294de04cc"
],
"x": 0.36142061281337046,
"y": 0.502092050209205,
"type": "operation",
"deprecated": false,
"scheduled": true
}
},
"transitions": {},
"groups": [
"2972d8f049debdb6dec44f93",
"24fe09edd928a2d29807004f",
"5b249795dbb2d3c721ef3bdf",
"54c1c4985a131c0e5bf8d53f"
],
"_id": "4321abcdef694aa79dae47ad",
"description": null,
"preAutomationTime": 5000,
"font_size": 12,
"created": "1960-04-28T00:52:49.037Z",
"created_by": "72ab285c8f64991eb61d7c35",
"last_updated": "1967-08-08T18:14:26.963Z",
"last_updated_by": "37b097d27560d24e0bd1c728",
"lastUpdatedVersion": "non est eu nostrud sit",
"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
{
"type": "array",
"items": {
"type": "array",
"items": {
"$ref": "wfEngineCommon#/definitions/workflowTaskId"
}
},
"examples": [
[
[
"workflow_start",
"workflow_end"
],
[
"workflow_start",
"abcd",
"workflow_end"
]
]
]
}