Summary
Validate All Loops
Description
Validate all looped Tasks in a Workflow by Workflow details.
Route
POST /workflow_engine/validateAllLoops
Roles
admin
apiread
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
workflow_details |
object |
yes |
Workflow to validate looped Tasks. |
Copied to Clipboard
{
"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": "nostrud incididunt",
"description": "consectetur esse sint qui incididunt",
"app": "in do in laboris",
"variables": {
"error": ""
},
"groups": [
"63283e8e2cbc73487837b189",
"7886bcc12a66f233ef4618d2",
"4ee2ac5b2856cbd0aa858a91",
"3802b9f18e015f956d25d4d4"
],
"x": 0.36142061281337046,
"y": 0.502092050209205,
"type": "operation",
"deprecated": false,
"scheduled": true,
"retrySettings": {
"state": [
"success",
"error",
"success",
"failure",
"failure"
],
"autoRetry": false,
"limit": 10,
"delay": 1000,
"count": 5
}
}
},
"transitions": {},
"groups": [
"63cc94d2af6e45321bc5b608",
"0c3b729f2a5d2a3b58c2d175",
"cb25c604db807f985c7e73da",
"3ec03a6a711f11ed95564f8a"
],
"_id": "5cb7b531d06cceb89fd21b1c",
"description": "mollit incididunt et",
"preAutomationTime": 250000,
"font_size": 12,
"created": "2011-08-20T00:04:31.525Z",
"created_by": "de3196eee522b3fa32d7a7ee",
"last_updated": "1977-02-01T00:01:55.454Z",
"last_updated_by": "98ee1c6f601b620f59f9d970",
"lastUpdatedVersion": "sed elit adipisicing consequat",
"tags": [],
"canvasVersion": 2
}
}
Copied to Clipboard
{
"type": "object",
"properties": {
"workflow_details": {
"$ref": "workflowDocument"
}
},
"required": [
"workflow_details"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
valid_loop_tasks |
array |
Valid looped Tasks of the Workflow. |
Copied to Clipboard
[
"12ab",
"cd34",
"12ab",
"cd34"
]