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 irure",
"description": "dolore",
"app": "aliquip exercitation ullamco Lorem",
"variables": {
"error": ""
},
"groups": [
"a08f7aa9ceb96fcb53d6acef"
],
"x": 0.36142061281337046,
"y": 0.502092050209205,
"type": "operation",
"deprecated": true,
"scheduled": true
}
},
"transitions": {},
"groups": [
"13cee0e598af7a9701555289",
"3aba31cfeaf84ea02bb6ad26",
"07665857dc0cf0ef1d3d0c0d",
"80d8816fd0990c5fc6181991",
"80ef4e65e8b42f3124cea40b"
],
"_id": "5cb7b531d06cceb89fd21b1c",
"description": null,
"font_size": 12,
"created": "1994-08-31T05:43:16.111Z",
"created_by": "a674e0707fef666f8c5daa4b",
"last_updated": "1996-03-06T07:07:06.893Z",
"last_updated_by": "a1d7cc5ed6be6a1eebd7bbed",
"lastUpdatedVersion": "voluptate anim",
"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"
]
]
]
}