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": "cillum anim",
"description": "et",
"app": "cupidatat est nisi irure anim",
"variables": {
"error": ""
},
"groups": [
"c33f8d43b90767d6f452cf16",
"cd5513ab94a6d901bc9ab2e1",
"8cbbfe25589028ae2dc96880"
],
"x": 0.36142061281337046,
"y": 0.502092050209205,
"type": "operation",
"deprecated": false,
"scheduled": true,
"retrySettings": {
"state": [
"success",
"failure"
],
"autoRetry": true,
"limit": 10,
"delay": 2000,
"count": 5
}
}
},
"transitions": {},
"groups": [
"780874dae0d6c10ba597fb05",
"725f9548161ea24694314a9e",
"101259cd8ebb5eedb09fa991",
"50386a05ce759ac9920f5faa",
"136bbd45f364586a8f3af189"
],
"_id": "4321abcdef694aa79dae47ad",
"description": "pariatur in",
"preAutomationTime": 250000,
"font_size": 12,
"created": "2000-10-19T07:49:53.422Z",
"created_by": "fe4baa456401554b8e9649c2",
"last_updated": "2020-11-07T11:45:26.998Z",
"last_updated_by": "48976c903853c336c400d3b2",
"lastUpdatedVersion": "labore amet",
"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"
]
]
]
}