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": "do enim qui",
"description": "aute ullamco fugiat Excepteur adipisicing",
"app": "anim minim",
"variables": {
"error": ""
},
"groups": [
"f79e4b300b0214da514b80b9",
"31213f118324ae7beba18695",
"2dbe7cfec94d341a2934f36a",
"a999ab349cdbc19d56acd771"
],
"x": 0.36142061281337046,
"y": 0.502092050209205,
"type": "operation",
"deprecated": false,
"scheduled": true
}
},
"transitions": {},
"groups": [
"9a266b808c037f0b2fac80cd",
"db5abcac5f4885837aec4878",
"0505600228572bd0490481bb"
],
"_id": "5cb7b531d06cceb89fd21b1c",
"description": "cupidatat minim ut sed est",
"font_size": 12,
"created": "1993-03-31T23:05:11.662Z",
"created_by": "08a2a20786258c35bef26006",
"last_updated": "1967-04-04T02:32:12.663Z",
"last_updated_by": "3629a00ac73bdbbd5a24bb1d",
"lastUpdatedVersion": "sint pariatur magna",
"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"
]
]
]
}