Summary
Finish a manual task
Description
Work a manual Task.
Route
POST /operations-manager/jobs/:jobId/tasks/:taskId/finish
Roles
Parameters
Name | Type | Required | Description |
---|---|---|---|
jobId | string | yes | The id of the Job containing the Task to be worked. |
taskId | string | yes | The id of the Task to be worked. |
taskData | object | yes | The data used to complete the manual Task. |
{ "taskData": { "finish_state": "dolore ex commodo" } }
{ "type": "object", "properties": { "taskData": { "title": "taskData", "type": "object", "properties": { "finish_state": { "type": "string" }, "variables": { "type": "object" } }, "required": [ "finish_state", "variables" ] } }, "required": [ "taskData" ], "additionalProperties": false }
Return
Name | Type | Description |
---|---|---|
result | object | The result of the finish manual Task operation. |
{ "message": "Successfully retrieved search results", "data": { "_id": "728d6322595667d80706467b", "font_size": 40576209, "type": "resource:action", "created": "2009-11-14T09:00:27.887Z", "last_updated": "2009-06-24T02:02:08.568Z", "createdVersion": "02610148.51504052027.3140832-6634.2861.93734195.41340", "lastUpdatedVersion": "89.6169324.8", "canvasVersion": 3, "encodingVersion": 1, "migrationVersion": -68544144, "name": "myCoolDocumentName", "description": "Some helpful information about the document", "preAutomationTime": -72713331.15168788, "sla": 51638199.7043089, "decorators": [ { "type": "encryption", "pointer": "/k9r/fnsYP,Z/~1/O1nYwSa8LgI/yC7rrf,8jB9/~0/~0/euUCj/M5W/zuQK/sL7KR" } ], "status": "paused", "tags": [], "error": [ { "task": "job", "message": "Job has no available transitions. c841 could have led to the workflow end task, but did not. These tasks performed in a way that the end of the workflow could not be reached.", "timestamp": 1627323002574 }, { "task": "f9a9", "message": { "code": 500, "message": { "apiVersion": "1", "method": "transformations.run", "error": { "code": 500, "message": "Missing one of the following required instances: arg2, arg1", "errors": [] } } }, "timestamp": 1627323002561 }, { "task": "job", "message": "Job has no available transitions. c841 could have led to the workflow end task, but did not. These tasks performed in a way that the end of the workflow could not be reached.", "timestamp": 1627323002574 }, { "task": "job", "message": "Job has no available transitions. c841 could have led to the workflow end task, but did not. These tasks performed in a way that the end of the workflow could not be reached.", "timestamp": 1627323002574 }, { "task": "f9a9", "message": { "code": 500, "message": { "apiVersion": "1", "method": "transformations.run", "error": { "code": 500, "message": "Missing one of the following required instances: arg2, arg1", "errors": [] } } }, "timestamp": 1627323002561 } ], "warnings": [ { "task": "workflow_end", "name": "myCoolDocumentName" }, { "task": "error_handler", "name": "myCoolDocumentName" }, { "task": "e28f", "name": "myCoolDocumentName", "message": "esse qui Excepteur laborum est" }, { "task": "workflow_start", "name": "myCoolDocumentName" } ], "ancestors": [ "ebd2f998efe14ec5d3d8f236", "d12e47ecf36ada272f29726d", "404400db518473c5de46039c" ], "validationErrors": [ { "keyword": "fugiat sint", "instancePath": "in labore amet", "schemaPath": "id dolor amet deserunt", "message": "occaecat" }, { "keyword": "in nostrud Excepteur", "instancePath": "irure", "schemaPath": "aliquip ea cupidatat culpa sit", "message": "pariatur dolore aliqua" }, { "keyword": "in consectetur eu sint id", "instancePath": "do irure in sit adipisicing", "schemaPath": "exercitation", "message": "esse veniam enim" }, { "keyword": "sint velit laboris veniam dolore", "instancePath": "minim", "schemaPath": "sint nostrud", "message": "et reprehenderit" }, { "keyword": "nisi exercitation elit officia in", "instancePath": "id", "schemaPath": "reprehenderit cillum ea Ut", "message": "dolore" } ], "created_by": null, "last_updated_by": null, "tasks": { "0": { "x": -52824190.82647958, "y": -4582944.026234031, "gridCoordinate": { "x": 66323634.421988666, "y": -67011513.99394778 }, "name": "mollit sint", "location": "Broker", "locationType": null, "app": "anim Ut", "canvasName": "ut veniam magna in dolore", "displayName": "pariatur non fugiat", "summary": "in", "description": "dolore qui fugiat cupidatat pariatur", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/~0/YfXu3o4Cr2/hqvpUgC/~1" }, { "type": "encryption", "pointer": "/J/NkGXQPQU82V" }, { "type": "encryption", "pointer": "/Llf0wMBX" } ] }, "deprecated": false, "scheduled": false, "matched": [ { "key": "sunt", "highlightString": "tempor" }, { "key": "id laborum ex", "highlightString": "dolor fugiat" } ], "status": "error", "previous": { "incomplete": [ "workflow_end", "3a1f", "workflow_start" ], "complete": [ "error_handler", "workflow_start", "3a1f" ], "error": [ "workflow_start", "workflow_start", "e28f" ] }, "taskId": "workflow_end", "transitions": { "success": [ { "task": "workflow_end", "type": "loop" }, { "task": "workflow_end", "type": "loop" }, { "task": "3a1f", "type": "standard" }, { "task": "workflow_start", "type": "revert" } ], "failure": [ { "task": "workflow_start", "type": "loop" }, { "task": "e28f", "type": "loop" }, { "task": "e28f", "type": "standard" }, { "task": "workflow_end", "type": "loop" }, { "task": "e28f", "type": "standard" } ], "error": [ { "task": "error_handler", "type": "standard" }, { "task": "e28f", "type": "revert" } ] }, "serverId": "aute occaecat", "start_time": "1984-06-13T09:46:50.754Z", "end_time": 49092406.61499351, "finish_state": "failure", "retrySettings": { "state": [ "success", "success" ], "autoRetry": true, "limit": 572052, "delay": 66291361, "count": 4164434, "finishedRetrying": true }, "type": "operation", "actor": { "_id": "88db6c6d725dd03934afa9ff", "provenance": "eiusmod", "username": "magna exercitation culpa et mollit", "firstname": "enim cupidatat in", "memberOf": [ { "groupId": "8961514ce17acdb86293fe54", "aaaManaged": true } ], "assignedRoles": [ { "roleId": "nisi dolore non" } ], "inactive": true, "lastLogin": "1954-12-15T20:37:14.156Z", "_meta": { "created": "1954-07-20T07:49:08.003Z", "updated": "1963-05-24T14:02:13.698Z", "migrationVersion": -94609002 }, "email": "incididunt sed consequat enim ut" }, "groups": [ "2e64b0da53bd7abd79c98c84", { "_id": "f72f9c2525a4ed0aba334793", "provenance": "officia eu consequat ex", "name": "in voluptate", "description": "enim sit", "memberOf": [ { "groupId": "4786193b7d86ca2fd9d91eb2", "aaaManaged": true } ], "assignedRoles": [ { "roleId": "fugiat et est amet officia" } ], "inactive": false, "_meta": { "created": "1996-01-06T13:16:28.865Z", "updated": "1965-10-23T21:40:34.762Z", "migrationVersion": 78122724 } } ], "iterations": [ "A6cF46ba-EBd4-A30a-aabe-Dde21aEa6AE1" ] }, "workflow_start": { "x": -69387624.31112875, "y": -41609919.71996735, "gridCoordinate": { "x": -20148312.945751593, "y": -83859252.9934206 }, "name": "workflow_start", "summary": "workflow_start", "taskId": "workflow_start", "metrics": { "start_time": 12578509.268482342, "finish_state": "error", "user": null }, "groups": [ "34d99745bca50528af5d619c", "37351efc48c00af7bbf76fbe" ], "iterations": [] }, "workflow_end": { "x": 33301752.011595592, "y": -26293103.334571734, "gridCoordinate": { "x": -52897334.18592127, "y": 68895631.6099715 }, "name": "workflow_end", "summary": "workflow_end", "taskId": "workflow_end", "endTasks": { "incomplete": [ "workflow_start", "workflow_start", "3a1f", "error_handler", "workflow_start" ], "complete": [ "3a1f", "error_handler" ], "error": [ "workflow_start", "workflow_start" ] }, "metrics": { "end_time": 95503298.8388555, "run_time": -39666299.41278228 }, "groups": [ "default", { "_id": "a2f5042031084732fe058769", "provenance": "Lorem", "name": "dolor magna est nulla exercitation", "description": "fugiat proident veniam", "memberOf": [ { "groupId": "32d836b9af539ce1e89d0187", "aaaManaged": false } ], "assignedRoles": [ { "roleId": "anim" }, { "roleId": "voluptate ex" }, { "roleId": "anim veniam" }, { "roleId": "deserunt" }, { "roleId": "velit laboris" } ], "inactive": true, "_meta": { "created": "2006-12-05T09:04:55.155Z", "updated": "1998-06-10T03:30:18.279Z", "migrationVersion": -63648968 } }, "default", "867997d81c74211543767a91", "a138bbb62300371746833d64" ], "iterations": [] }, "error_handler": { "x": -95310391.4663914, "y": 75230240.93438554, "gridCoordinate": { "x": -96290234.05217762, "y": 76307467.609519 }, "name": "childJob", "location": "Adapter", "locationType": null, "app": "eu laboris", "canvasName": "tempor in in", "displayName": "sunt", "summary": "tempor enim", "description": "non nisi", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/P/T1yLCD/bHLy/zkvlqv/v9/AsDrN7J/~1" }, { "type": "encryption", "pointer": "/GKUYhzovoc/ZK/~1" }, { "type": "encryption", "pointer": "/z/L.hw0MI/~0/~1/zHNz/~0/F" }, { "type": "encryption", "pointer": "/XbF/Z/~0" }, { "type": "encryption", "pointer": "/~1/~0" } ] }, "deprecated": false, "scheduled": false, "matched": [ { "key": "proident laboris laborum", "highlightString": "et laborum" }, { "key": "id eu", "highlightString": "tempor reprehenderit fugiat qui consectetur" }, { "key": "ea est", "highlightString": "sint amet" }, { "key": "consequat cillum", "highlightString": "ea dolore" } ], "status": "running", "previous": { "incomplete": [ "error_handler", "e28f", "workflow_end" ], "complete": [ "e28f" ], "error": [ "error_handler", "error_handler" ] }, "taskId": "e28f", "transitions": { "success": [ { "task": "workflow_start", "type": "loop" }, { "task": "e28f", "type": "revert" }, { "task": "error_handler", "type": "standard" }, { "task": "workflow_start", "type": "revert" }, { "task": "workflow_start", "type": "loop" } ], "failure": [ { "task": "e28f", "type": "standard" }, { "task": "e28f", "type": "loop" }, { "task": "e28f", "type": "loop" }, { "task": "error_handler", "type": "standard" } ], "error": [ { "task": "3a1f", "type": "standard" }, { "task": "workflow_start", "type": "revert" }, { "task": "workflow_start", "type": "revert" } ] }, "serverId": "elit", "start_time": "2017-10-23T20:28:47.213Z", "end_time": 70730865.5944002, "finish_state": "failure", "retrySettings": { "state": [ "error", "failure", "failure", "failure", "failure" ], "autoRetry": true, "limit": 5705509, "delay": 42571214, "count": 31578910, "finishedRetrying": false }, "type": "operation", "actor": "a380a55a6b2f4f4e2e574d34", "groups": [ "83592f34731d24d2095a08c5", "df9ed583cc2c50b93d0d2b54", "4fbc72038fc88b601974f934", "default", "c5c2c8c9d967d3ff363ecc14" ], "iterations": [ "901a83fe-59e0-BaE0-Bc62-4E3bf88bfFcF", "a8287B6E-32fa-4Cd1-20b2-4E2f2b7AAbc1" ] } }, "parent": { "job": "nisi non in magna dolore", "task": "deserunt nostrud cillum consequat sint", "iteration": 76098163.47404864, "element": -58764504.83162743 }, "errorHandler": null, "groups": [ "2c0d2d0c2bd6ef0f6e2c3fb9", { "_id": "ca6b6320b24401a098a5163e", "provenance": "sunt", "name": "cillum", "description": "amet do", "memberOf": [ { "groupId": "d90814255d5b77f2c13ac4b9", "aaaManaged": false }, { "groupId": "8c7cbdc6839637a371ef3e93", "aaaManaged": true }, { "groupId": "fba912cc712cd9afc18fbb3c", "aaaManaged": true }, { "groupId": "a24f329a63b084045394a067", "aaaManaged": false } ], "assignedRoles": [ { "roleId": "ad nulla Ut eu" }, { "roleId": "Ut" }, { "roleId": "anim dolor exercitation tempor do" }, { "roleId": "eu ut exercitation consequat proident" } ], "inactive": false, "_meta": { "created": "1997-02-28T19:49:51.885Z", "updated": "1998-06-14T13:14:34.99Z", "migrationVersion": -21566354 } } ], "watchers": [ "Pronghorn", null, "2d0ee8ca5584a1e21d1005d9", "1df906f8f203e7455a2ece30" ], "metrics": { "start_time": 15805493.45983316, "progress": 0.4037268867086423, "end_time": 70814014.44238931, "user": { "_id": "873f29dde19d08a88bc66cc5", "provenance": "aliqua veniam", "username": "pariatur ex", "firstname": "eu Lorem", "memberOf": [ { "groupId": "3de3f92f75e1eda49fe206bf", "aaaManaged": false } ], "assignedRoles": [ { "roleId": "labore in veniam occaecat dolor" }, { "roleId": "laboris" }, { "roleId": "consectetur" }, { "roleId": "enim cupidatat esse" }, { "roleId": "Lorem" } ], "inactive": false, "lastLogin": "1968-08-01T16:39:39.514Z", "_meta": { "created": "1999-12-05T15:29:02.942Z", "updated": "1977-03-03T03:41:54.358Z", "migrationVersion": -75862907 }, "email": "cupidatat Duis sit" }, "owner": "0e4e48e38dd636bfaf5862ab" } } }
{ "title": "result", "allOf": [ { "$ref": "common-api#/definitions/success-response" }, { "type": "object", "properties": { "data": { "$ref": "job-api" } } } ] }