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": "culpa fugiat magna",
"description": "velit officia consectetur amet",
"app": "aliqua enim cillum esse",
"variables": {
"error": ""
},
"groups": [
"4e73f89047ad0609d4506a6c",
"872e4dad4c1e683f14b21ebf",
"5360993395b482e5e7956a0f",
"bd9a1b3c893b68f76f7a0b0d",
"091aa3633ca9aa75672bf459"
],
"x": 0.36142061281337046,
"y": 0.502092050209205,
"type": "operation",
"deprecated": false,
"scheduled": false,
"retrySettings": {
"state": [
"failure",
"failure"
],
"autoRetry": true,
"limit": 20,
"delay": 2000,
"count": 5
}
}
},
"transitions": {},
"groups": [
"ae6ec7bffa85a45933024525"
],
"_id": "5cb7b531d06cceb89fd21b1c",
"description": "sit velit eu fugiat",
"preAutomationTime": 5000,
"font_size": 12,
"created": "2002-07-15T08:23:58.206Z",
"created_by": "78b4cdecfc96cb2be1f439ca",
"last_updated": "1960-05-28T09:40:48.993Z",
"last_updated_by": "3d2f188cce23fdf74fdaab44",
"lastUpdatedVersion": "incididunt ullamco id",
"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"
]
]
]
}