Summary
Get Iterations of a Job's Task
Description
Get iterations of a Job's Task by Job ID and Task name.
Route
GET /workflow_engine/getTaskIterations/:job_id/:task
Roles
admin
apiread
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
job_id |
string |
yes |
Job ID to get iterations of its Task. |
task |
string |
yes |
Four digit hexadecimal task id to get task iterations from. |
Copied to Clipboard
{
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
task_iterations |
array |
Iterations of a Job's Task. |
Copied to Clipboard
[
{
"_id": "8085260c-d951-4e5f-9d52-06d911a4eb38",
"name": "TestTask",
"summary": "Test Task",
"displayName": "WorkflowBuilder",
"type": "automated",
"x": 0.36142061281337046,
"y": 0.502092050209205,
"status": "running",
"job": {
"_id": "f80f8dc8b5a04a72bd8dad6c",
"name": "SomeJobName",
"description": "This Job is for doing XYZ when ABC occurs",
"task": "4a89",
"index": 2
},
"iterations": [
"8085260c-d951-4e5f-9d52-06d911a4eb38",
"8085260c-d951-4e5f-9d52-06d911a4eb38",
"8085260c-d951-4e5f-9d52-06d911a4eb38",
"8085260c-d951-4e5f-9d52-06d911a4eb38",
"8085260c-d951-4e5f-9d52-06d911a4eb38"
],
"description": "Test Task",
"app": "WorkflowBuilder",
"view": "/workflow_builder/task/TestTask",
"deprecated": false,
"scheduled": false,
"metrics": {
"start_time": 1555430149763,
"end_time": 1555430169683,
"run_time": 75069184,
"finish_state": "error",
"server_id": "ac:de:48:00:11:22:3000",
"app": {
"id": "WorkFlowEngine",
"version": "1.2.3"
}
},
"locked": false,
"variables": {
"incoming": {
"inputVariable": "inputValue"
},
"outgoing": {
"outputVariable": "outputValue"
},
"error": ""
}
},
{
"_id": "8085260c-d951-4e5f-9d52-06d911a4eb38",
"name": "TestTask",
"summary": "Test Task",
"displayName": "WorkflowBuilder",
"type": "automated",
"x": 0.36142061281337046,
"y": 0.502092050209205,
"status": "paused",
"job": {
"_id": "f80f8dc8b5a04a72bd8dad6c",
"name": "SomeJobName",
"description": "This Job is for doing XYZ when ABC occurs",
"task": "4a89",
"index": 0
},
"iterations": [
"8085260c-d951-4e5f-9d52-06d911a4eb38",
"8085260c-d951-4e5f-9d52-06d911a4eb38",
"8085260c-d951-4e5f-9d52-06d911a4eb38"
],
"description": "Test Task",
"app": "WorkflowBuilder",
"view": "/workflow_builder/task/TestTask",
"deprecated": false,
"scheduled": false,
"metrics": {
"owner": "laborum irure",
"start_time": 1555430149763,
"end_time": 1555430169683,
"run_time": 75069184,
"finish_state": "error",
"server_id": "ac:de:48:00:11:22:3000",
"app": {
"id": "WorkFlowEngine",
"version": "1.2.3"
}
},
"locked": false,
"variables": {
"incoming": {
"inputVariable": "inputValue"
},
"outgoing": {
"outputVariable": "outputValue"
},
"error": ""
}
}
]
Copied to Clipboard
{
"type": "array",
"items": {
"$ref": "taskDocument"
}
}