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": "nulla eu fugiat",
"description": "cillum ut officia",
"app": "dolor in et irure ut",
"variables": {
"error": ""
},
"groups": [
"3c454688145caf1c8cf9ace1",
"9bd4db10b55cbb9144d51825",
"e918fd2d6efb460d162a65c7"
],
"x": 0.36142061281337046,
"y": 0.502092050209205,
"type": "operation",
"deprecated": false,
"scheduled": false
}
},
"transitions": {},
"groups": [
"eb4a294a45dc565d323fb2eb",
"61702fec1e902697abc3eb48",
"f4061e06947b229a0b51744f"
],
"_id": "4321abcdef694aa79dae47ad",
"description": "ut dolore nulla consectetur",
"font_size": 12,
"created": "1998-09-08T17:43:28.43Z",
"created_by": "1a8e8a634df18641852c18a7",
"last_updated": "1997-03-29T19:58:43.124Z",
"last_updated_by": "d0a2867d0dac7852d8b05cba",
"lastUpdatedVersion": "commodo sit amet veniam ad",
"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
{
"type": "array",
"items": {
"type": "array",
"items": {
"$ref": "wfEngineCommon#/definitions/workflowTaskId"
}
},
"examples": [
[
[
"workflow_start",
"workflow_end"
],
[
"workflow_start",
"abcd",
"workflow_end"
]
]
]
}