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": "reprehenderit tempor ullamco" } }
{ "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 created the requested item", "data": { "_id": "d2cbb5d4d1d2992ce7e9c3ae", "uuid": "da781a40-3688-ec8d-cdb9-b37e7895c482", "font_size": -71044456, "type": "resource:action", "created": "1948-03-13T22:22:46.857Z", "last_updated": "2008-01-16T16:50:45.446Z", "createdVersion": "319.3596232.33446540564-2224.393.553", "lastUpdatedVersion": "88042485496.31184029.3377625626", "canvasVersion": 1.5, "encodingVersion": 1, "migrationVersion": -78838206, "name": "myCoolDocumentName", "description": "Some helpful information about the document", "preAutomationTime": -84369102.24087076, "sla": 53351850.167236745, "decorators": [ { "type": "encryption", "pointer": "/pcHgvqQVIP/qt49rreoC3/~1/A/vR/~0" } ], "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": "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 } ], "warnings": [ { "task": "e28f", "name": "myCoolDocumentName", "message": "veniam nulla" }, { "task": "workflow_end", "name": "myCoolDocumentName", "message": "nulla laboris ipsum do" } ], "ancestors": null, "validationErrors": [ { "keyword": "in velit", "instancePath": "in sint anim aliqua", "schemaPath": "adipisicing", "message": "aute dolore consectetur laboris" }, { "keyword": "Duis ullamco fugiat dolore reprehenderit", "instancePath": "sed", "schemaPath": "cupidatat", "message": "velit et sunt dolor" }, { "keyword": "nisi non labore ut", "instancePath": "Ut occaecat cillum do", "schemaPath": "deserunt", "message": "esse occaecat veniam et ut" }, { "keyword": "sint Duis aliqua", "instancePath": "magna Excepteur in sint", "schemaPath": "ipsum sint", "message": "fugiat qui sunt cillum magna" } ], "created_by": "Pronghorn", "last_updated_by": { "_id": "9581ded522df58c8f9a96e2f", "provenance": "consectetur enim labore", "username": "Excepteur commodo fugiat adipisicing", "firstname": "exercitation", "memberOf": [ { "groupId": "7b399e2b5468bd81b7b440b6", "aaaManaged": true }, { "groupId": "a7a2f540d7a071bd618b9add", "aaaManaged": true }, { "groupId": "94573e4e006e47767ed52eb3", "aaaManaged": false }, { "groupId": "66a268b16b6f466c521a8a78", "aaaManaged": true } ], "assignedRoles": [ { "roleId": "laborum magna sit ullamco amet" }, { "roleId": "cillum enim" }, { "roleId": "laboris culpa" }, { "roleId": "nulla" }, { "roleId": "veniam Lorem dolor cupidatat" } ], "inactive": true, "lastLogin": "1989-12-17T06:40:44.616Z", "_meta": { "created": "2006-07-06T17:48:02.658Z", "updated": "1994-01-07T02:07:11.25Z", "migrationVersion": 16585918 }, "email": "ad consequat ipsum aliqua" }, "tasks": { "workflow_start": { "x": 46118082.53284165, "y": -9565861.319506392, "gridCoordinate": { "x": 89190927.69688848, "y": 87011657.23529351 }, "name": "workflow_start", "summary": "workflow_start", "taskId": "workflow_start", "metrics": { "start_time": 16789059.352176398, "finish_state": "success", "user": "33a20219385e9207437b4634" }, "groups": [ { "_id": "556d74b72f29e8954d426d5b", "provenance": "enim deserunt nulla dolore aliqua", "name": "cupidatat", "description": "in consectetur", "memberOf": [ { "groupId": "e99174823e98682ee03eef2c", "aaaManaged": false }, { "groupId": "a851a6348b6b0e7b0c54b3a4", "aaaManaged": true }, { "groupId": "21601948b4047dd5bee19f7e", "aaaManaged": false }, { "groupId": "5f5447fd41e95565a635c074", "aaaManaged": true }, { "groupId": "306ee22a907d9edcc72680b5", "aaaManaged": false } ], "assignedRoles": [ { "roleId": "consequat velit" } ], "inactive": true, "_meta": { "created": "1959-07-02T05:52:52.133Z", "updated": "1987-07-04T15:42:03.88Z", "migrationVersion": 70119631 } }, { "_id": "91ece3b36522a41a23fa39c8", "provenance": "ut", "name": "dolor elit ea esse", "description": "in", "memberOf": [ { "groupId": "d56d6bdc9885c9d5555afef3", "aaaManaged": true }, { "groupId": "01ff4f3d9193abc01d626839", "aaaManaged": false }, { "groupId": "f35962252c1b5cb87e95625f", "aaaManaged": true }, { "groupId": "da96bb5708e923b9f71286aa", "aaaManaged": false } ], "assignedRoles": [ { "roleId": "voluptate cillum minim nisi anim" }, { "roleId": "laborum" }, { "roleId": "ipsum aute" }, { "roleId": "magna sed" } ], "inactive": true, "_meta": { "created": "1980-12-25T03:03:59.913Z", "updated": "1958-01-13T04:45:44.862Z", "migrationVersion": 93079703 } } ], "iterations": [ "B03f4f32-1d53-821d-F9f9-4C0CccBFB62E", "9ED3A3ac-362B-0630-29F4-fA2dFAbCdCF1" ] }, "workflow_end": { "x": -67648245.95259702, "y": 11422767.451837242, "gridCoordinate": { "x": 14994000.1325223, "y": 82640121.01793045 }, "name": "workflow_end", "summary": "workflow_end", "taskId": "workflow_end", "endTasks": { "incomplete": [ "3a1f", "workflow_start", "error_handler", "workflow_start", "workflow_start" ], "complete": [ "e28f", "e28f", "error_handler", "error_handler", "workflow_end" ], "error": [ "workflow_start", "error_handler", "e28f" ] }, "metrics": { "end_time": 28717987.14916092, "run_time": 51554964.44286242 }, "groups": [ "default", "48187be57b1638630cb1b26e", "edd89ebaed5a788d4e181805", "default" ], "iterations": [ "691B3124-fcc5-Bf1a-Ae58-65fdB9817973", "57CB4B73-3CDA-c821-Eea7-3c22997151f1" ] }, "error_handler": { "x": -33357979.098333023, "y": 5010393.019718066, "gridCoordinate": { "x": 62289468.23648846, "y": 33741029.30962674 }, "name": "childJob", "location": "Application", "locationType": null, "app": "laborum deserunt in", "canvasName": "est exercitation", "displayName": "aute amet", "summary": "eu ex", "description": "sit", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/~1/~0/fhBkU/xD,/SfLhYb/jC0LCt" }, { "type": "encryption", "pointer": "/~1/Mc/~0/~0/CZ2h4fn7XJ" } ] }, "deprecated": true, "scheduled": false, "matched": [ { "key": "minim cillum occaecat ex quis", "highlightString": "tempor sint exercitation" } ], "status": "incomplete", "previous": { "incomplete": [ "workflow_end", "error_handler", "workflow_start", "error_handler" ], "complete": [ "workflow_start", "workflow_end", "workflow_end", "workflow_start", "3a1f" ], "error": [ "workflow_start" ] }, "taskId": "3a1f", "transitions": { "success": [ { "task": "3a1f", "type": "loop" }, { "task": "workflow_start", "type": "loop" }, { "task": "3a1f", "type": "loop" } ], "failure": [ { "task": "e28f", "type": "standard" }, { "task": "error_handler", "type": "revert" }, { "task": "error_handler", "type": "loop" } ], "error": [ { "task": "workflow_start", "type": "loop" }, { "task": "e28f", "type": "revert" }, { "task": "workflow_start", "type": "revert" }, { "task": "workflow_end", "type": "revert" }, { "task": "error_handler", "type": "revert" } ] }, "serverId": "proident ad", "start_time": "1992-06-08T23:03:43.358Z", "end_time": -71174338.19319916, "finish_state": "failure", "retrySettings": null, "type": "operation", "actor": "job", "groups": [ "default", { "_id": "3f3f2c3d007212acf2d22710", "provenance": "dolore", "name": "eiusmod", "description": "tempor", "memberOf": [ { "groupId": "90d524d15129b5c685065cd0", "aaaManaged": true }, { "groupId": "6b142f70ec54bcfd72c4bbec", "aaaManaged": false }, { "groupId": "82d59e0555a13332b1789573", "aaaManaged": false } ], "assignedRoles": [ { "roleId": "officia ad" }, { "roleId": "aliqua elit Lorem voluptate amet" } ], "inactive": true, "_meta": { "created": "1950-07-22T11:07:28.741Z", "updated": "1997-11-06T15:43:38.478Z", "migrationVersion": -64360630 } }, { "_id": "411fd23aeacb601e425b5de6", "provenance": "magna Lorem", "name": "consectetur incididunt deserunt occaecat", "description": "enim", "memberOf": [ { "groupId": "c39597169b49858fbc55035d", "aaaManaged": true }, { "groupId": "d1767afff39b74e843530392", "aaaManaged": true }, { "groupId": "5a6e1f334ae3439fc352d3c1", "aaaManaged": false } ], "assignedRoles": [ { "roleId": "Duis ullamco ut aliqua" }, { "roleId": "incididunt consectetur" }, { "roleId": "eiusmod Lorem do" } ], "inactive": false, "_meta": { "created": "1983-04-30T15:19:24.256Z", "updated": "1972-01-15T09:42:52.618Z", "migrationVersion": -64476418 } } ], "iterations": [ "e0Ebbb3C-6f6a-1Cba-58e9-497E35a260FC" ] }, "c7": { "actor": { "_id": "519c8200241debbadca01f7e", "provenance": "Duis", "username": "tempor deserunt", "firstname": "mollit in laboris", "memberOf": [ { "groupId": "a8b5a47640ce6b67bc43b0c1", "aaaManaged": true }, { "groupId": "711c04a337ffbc3bf5438414", "aaaManaged": true }, { "groupId": "b6f52325412ef29d457f4e53", "aaaManaged": true }, { "groupId": "00323a880e1723c179135d44", "aaaManaged": false } ], "assignedRoles": [ { "roleId": "eu in dolore elit enim" }, { "roleId": "Excepteur" } ], "inactive": false, "lastLogin": "2018-10-11T17:14:50.862Z", "_meta": { "created": "2017-05-08T09:33:18.893Z", "updated": "1967-04-01T18:10:44.788Z", "migrationVersion": 28955293 }, "email": "est officia dolore" }, "groups": [ { "_id": "f687ff9cb1b6a7fc9d34c43a", "provenance": "anim Lorem elit in fugiat", "name": "in", "description": "nisi", "memberOf": [ { "groupId": "e75ee45a66eb089bba66e29c", "aaaManaged": true }, { "groupId": "444313ed3b0b798e569435ce", "aaaManaged": false } ], "assignedRoles": [ { "roleId": "est" }, { "roleId": "consectetur" }, { "roleId": "officia incididunt" }, { "roleId": "in" }, { "roleId": "incididunt reprehenderit do" } ], "inactive": false, "_meta": { "created": "1958-12-30T08:37:49.823Z", "updated": "2013-11-25T04:10:52.672Z", "migrationVersion": -76300504 } }, "default", "default", "f34273c7c33c9df2149e00c8" ], "iterations": [], "x": 35340089.881233305, "y": -41129556.71470795, "gridCoordinate": { "x": -7947645.811012328, "y": 51995141.16017115 }, "name": "pending", "summary": "reprehenderit sunt", "description": "Lorem occaecat Ut" } }, "parent": { "job": "magna", "task": "cupidatat tempor in", "iteration": -70988828.20843184, "element": -70556798.98379475 }, "errorHandler": null, "groups": [ "default", "7c676311685a4c0784048ee6", "default", { "_id": "6cca9c7a870aa3a16d1d0de7", "provenance": "dolore culpa aliquip Ut", "name": "dolore elit", "description": "cillum occaecat pariatur incididunt ut", "memberOf": [ { "groupId": "fd077c1fa91b7faac1a043db", "aaaManaged": true } ], "assignedRoles": [ { "roleId": "ex" }, { "roleId": "magna velit sit" }, { "roleId": "minim in reprehenderit magna laborum" } ], "inactive": true, "_meta": { "created": "1982-07-16T02:38:50.506Z", "updated": "1998-05-07T02:12:58.982Z", "migrationVersion": -54677394 } } ], "watchers": [ "0bda81b1e03562dd7f5ba9b1", null ], "metrics": { "start_time": 16648535.359869137, "progress": 0.2555056101904909, "end_time": -19116742.571330383, "user": null, "owner": "Pronghorn" } } }
{ "title": "result", "allOf": [ { "$ref": "common-api#/definitions/success-response" }, { "type": "object", "properties": { "data": { "$ref": "job-api" } } } ] }