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": "voluptate esse in fugiat" } }
{ "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": "3ab99343376c735d1fd5cdd4", "font_size": 42708139, "type": "resource:action", "created": "2011-08-20T11:29:16.616Z", "last_updated": "1983-04-17T12:45:32.309Z", "createdVersion": "94.110816466.53631", "lastUpdatedVersion": "04158201.3886.042-7256.51698607.9106851", "canvasVersion": 2, "encodingVersion": 1, "migrationVersion": -31993445, "name": "myCoolDocumentName", "description": "Some helpful information about the document", "preAutomationTime": 25150112.706963584, "sla": -4445038.046532005, "decorators": [ { "type": "encryption", "pointer": "/~0/wG0ZWYpTf/~1/~0/~0/x/Yi7l/~1/~1/UM/eOwb,0" }, { "type": "encryption", "pointer": "/~1/~1/~1/Qq/y,/DvsAJLW/rDZ/~1/~1/YvA" } ], "status": "canceled", "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": "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 } ], "warnings": [ { "task": "workflow_end", "name": "myCoolDocumentName" }, { "task": "workflow_start", "name": "myCoolDocumentName", "message": "Ut exercitation ea est" } ], "ancestors": null, "validationErrors": [ { "keyword": "culpa nisi tempor", "dataPath": "dolore sed est", "schemaPath": "sint consequat nostrud", "message": "officia voluptate laboris deserunt" }, { "keyword": "non aliqua adipisicing consectetur elit", "dataPath": "dolore cillum quis", "schemaPath": "veniam enim cillum exercitation ut", "message": "non Lorem elit do" }, { "keyword": "dolor Duis in tempor deserunt", "dataPath": "est cupidatat eiusmod", "schemaPath": "sit", "message": "adipisicing irure sed ea dolore" } ], "created_by": { "_id": "035762ada1340af01782ae03", "provenance": "ullamco et ut officia", "username": "aliqua in elit consectetur nisi", "firstname": "non est labore reprehenderit", "memberOf": [ { "groupId": "b270ba1408a99161bd93a70d", "aaaManaged": false } ], "assignedRoles": [ { "roleId": "dolore enim dolor Excepteur consectetur" }, { "roleId": "ipsum deserunt elit occaecat sunt" }, { "roleId": "do amet magna" }, { "roleId": "in cupidatat" }, { "roleId": "aute exercitation veniam cupidatat" } ], "inactive": true, "lastLogin": "1951-10-02T08:31:51.728Z", "_meta": { "created": "1958-09-16T02:35:46.014Z", "updated": "1957-05-06T12:32:29.614Z", "migrationVersion": -24834076 }, "email": "nulla in exercitation" }, "last_updated_by": { "_id": "a849898a308e582405299083", "provenance": "eu id pariatur sunt esse", "username": "ut", "firstname": "fugiat", "memberOf": [ { "groupId": "75624960371d624d3a75c631", "aaaManaged": false }, { "groupId": "3d1e1f7f66e43c09d97f967c", "aaaManaged": true }, { "groupId": "e8fc244de86bcc478ed0dff5", "aaaManaged": true } ], "assignedRoles": [ { "roleId": "consequat consectetur do proident" }, { "roleId": "consequat" }, { "roleId": "do deserunt" }, { "roleId": "occaecat dolor proident elit" } ], "inactive": false, "lastLogin": "1981-12-08T00:15:08.264Z", "_meta": { "created": "1952-06-18T20:53:50.769Z", "updated": "1966-08-23T18:04:20.746Z", "migrationVersion": -42242407 }, "email": "culpa dolore incididunt ex eiusmod" }, "tasks": { "workflow_start": { "x": -15330879.890080243, "y": 76355252.25972527, "gridCoordinate": { "x": -81380525.20213267, "y": -22558057.274883717 }, "name": "workflow_start", "summary": "workflow_start", "taskId": "workflow_start", "metrics": { "start_time": -63377138.726758406, "finish_state": "error", "user": "Pronghorn" }, "groups": [ "4ecc6abacbde4a7cbeeef524", "default", "c4da36b45bc0a0aedaea1d3c" ], "iterations": [] }, "workflow_end": { "x": -38313189.64527593, "y": -69100440.1457362, "gridCoordinate": { "x": -35981268.38073825, "y": 78509581.95997658 }, "name": "workflow_end", "summary": "workflow_end", "taskId": "workflow_end", "endTasks": { "incomplete": [ "error_handler", "3a1f", "3a1f", "workflow_start", "error_handler" ], "complete": [ "3a1f", "3a1f", "workflow_end", "e28f", "e28f" ], "error": [ "workflow_start" ] }, "metrics": { "end_time": 92502585.18998048, "run_time": -70712471.59074323 }, "groups": [ { "_id": "df7a22c11e288951b42cbbfd", "provenance": "Excepteur cupidatat laborum dolore", "name": "quis", "description": "officia Excepteur", "memberOf": [ { "groupId": "fe04ec86b17bc02370bf0106", "aaaManaged": true }, { "groupId": "0c72c6e6954f3d11a6b75844", "aaaManaged": true }, { "groupId": "651206750233c83f85b8d2dc", "aaaManaged": false }, { "groupId": "e4bb336f6021c36181cb407d", "aaaManaged": true }, { "groupId": "716487e661147db8cc9f6104", "aaaManaged": false } ], "assignedRoles": [ { "roleId": "Lorem consectetur" }, { "roleId": "aliqua in" }, { "roleId": "cillum ad fugiat" }, { "roleId": "eiusmod aliqua ut consectetur in" } ], "inactive": true, "_meta": { "created": "2016-04-19T18:58:29.354Z", "updated": "2008-09-24T09:25:35.524Z", "migrationVersion": 49772594 } }, "7e904c9a01ccfdd7dd30fd1d", "4fe952c5babb6bcad14c3a88", "default" ], "iterations": [ "D8C1BFFB-f8Ad-eD3E-Cdfd-4d9CC8d0a7Aa" ] }, "error_handler": { "x": 74968191.96161747, "y": -11896235.229121462, "gridCoordinate": { "x": 44547228.87097967, "y": 10588485.278987885 }, "name": "childJob", "location": "Adapter", "locationType": null, "app": "aliquip amet in", "canvasName": "minim esse ullamco", "displayName": "magna amet exercitation", "summary": "pariatur deserunt reprehenderit", "description": "dolore Ut Excepteur consequat", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/DjB,Dix/tO+XW/bV3j/YPxCf86XN/~0/~0/~0/~1/Pbm" }, { "type": "encryption", "pointer": "/TC-a.Oyx/~1/y301/~0/xO2Tetwz/~0/pNOM4d/I3vR/OXPwLiBd0nr" }, { "type": "encryption", "pointer": "/~0/HYbun" }, { "type": "encryption", "pointer": "/c/~0" } ] }, "deprecated": true, "scheduled": false, "matched": [ { "key": "cillum in consectetur tempor", "highlightString": "nisi" }, { "key": "anim in reprehenderit enim elit", "highlightString": "aliquip esse in ullamco" } ], "status": "canceled", "previous": { "incomplete": [ "workflow_start", "workflow_start" ], "complete": [ "error_handler", "error_handler", "e28f", "error_handler", "workflow_end" ], "error": [ "3a1f" ] }, "taskId": "e28f", "transitions": { "success": [ { "task": "workflow_end", "type": "loop" } ], "failure": [ { "task": "workflow_start", "type": "standard" }, { "task": "workflow_start", "type": "standard" }, { "task": "e28f", "type": "standard" }, { "task": "e28f", "type": "revert" } ], "error": [ { "task": "error_handler", "type": "revert" }, { "task": "error_handler", "type": "loop" }, { "task": "error_handler", "type": "standard" }, { "task": "error_handler", "type": "loop" }, { "task": "workflow_start", "type": "revert" } ] }, "serverId": "cillum aliquip", "start_time": "2020-11-08T02:03:57.059Z", "end_time": -43680082.211542934, "finish_state": "failure", "retrySettings": null, "type": "operation", "actor": "f8950523cd55ab81277198b8", "groups": [ "default", "1e9a668e7320ece0cbe5fe86", { "_id": "f3ccbe16b121f7b512d39dfd", "provenance": "amet ad qui non", "name": "irure nulla", "description": "cillum anim ex", "memberOf": [ { "groupId": "a936b017c39a8accaf392b22", "aaaManaged": true } ], "assignedRoles": [ { "roleId": "Ut culpa reprehenderit" }, { "roleId": "anim" }, { "roleId": "deserunt consequat velit" } ], "inactive": true, "_meta": { "created": "1991-10-18T16:21:34.869Z", "updated": "1969-04-17T19:28:49.007Z", "migrationVersion": -94643003 } } ], "iterations": [ "c9fd26D3-E783-CFdA-467a-e66eBa09BC99", "B8Ffe9E9-0Ff1-b048-6BBE-3aADb76B380A" ] }, "f96": { "x": -95956659.81114845, "y": -18476543.738671407, "gridCoordinate": { "x": 94994852.9925861, "y": 97352258.36447817 }, "name": "sed ut occaecat ex sint", "location": "Application", "locationType": null, "app": "consectetur laboris consequat", "canvasName": "occaecat ullamco dolore", "displayName": "Excepteur ullamco Ut voluptate", "summary": "elit", "description": "consectetur laboris labore sunt est", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/~0/~0/~0/x4w" } ] }, "deprecated": true, "scheduled": false, "matched": [ { "key": "sunt ut", "highlightString": "consectetur veniam voluptate" }, { "key": "dolor ad", "highlightString": "consequat tempor ipsum sint est" }, { "key": "Lorem velit Ut proident", "highlightString": "laboris veniam" }, { "key": "officia ea in ipsum Excepteur", "highlightString": "nostrud" } ], "status": "incomplete", "previous": { "incomplete": [ "error_handler", "workflow_start" ], "complete": [ "workflow_start", "3a1f", "e28f", "3a1f", "3a1f" ], "error": [ "e28f", "workflow_start", "workflow_end", "e28f" ] }, "taskId": "workflow_start", "transitions": { "success": [ { "task": "3a1f", "type": "revert" } ], "failure": [ { "task": "workflow_start", "type": "revert" }, { "task": "workflow_end", "type": "revert" }, { "task": "error_handler", "type": "loop" }, { "task": "workflow_end", "type": "loop" }, { "task": "3a1f", "type": "revert" } ], "error": [ { "task": "error_handler", "type": "loop" }, { "task": "workflow_start", "type": "revert" }, { "task": "workflow_start", "type": "loop" }, { "task": "e28f", "type": "revert" }, { "task": "workflow_end", "type": "revert" } ] }, "serverId": "eu id dolore ut", "start_time": "1972-01-19T11:36:24.334Z", "end_time": 48300947.54570916, "finish_state": "success", "retrySettings": null, "type": "operation", "actor": "job", "groups": [ "default", "default", "b94d40b6a41da324fa5cc8cd" ], "iterations": [] } }, "parent": { "job": "dolore dolor deserunt", "task": "magna dolore aliquip in", "iteration": 57089863.36761072, "element": -80883597.21640752 }, "errorHandler": null, "groups": [ { "_id": "a8bb3f870a8061e3bb600a4a", "provenance": "proident ipsum non", "name": "consequat occaecat nostrud", "description": "quis", "memberOf": [ { "groupId": "f4aa1eaf7d1d8e5abb49f68a", "aaaManaged": false } ], "assignedRoles": [ { "roleId": "culpa cupidatat anim qui officia" }, { "roleId": "consectetur laborum ullamco sed velit" }, { "roleId": "irure" }, { "roleId": "ea id do laboris" }, { "roleId": "tempor minim incididunt nostrud occaecat" } ], "inactive": false, "_meta": { "created": "2012-03-26T12:27:54.929Z", "updated": "2005-12-27T00:16:09.083Z", "migrationVersion": -93960796 } }, "default", "2414624839cebbccf05b769f", "default", { "_id": "d6a8af30cf5187f4ec90e43d", "provenance": "aliquip ullamco Excepteur", "name": "aute dolore", "description": "proident aute fugiat nulla", "memberOf": [ { "groupId": "d92d29dd129d216de6837f26", "aaaManaged": false } ], "assignedRoles": [ { "roleId": "velit enim in in consequat" }, { "roleId": "consequat" }, { "roleId": "occaecat in" }, { "roleId": "irure cillum" } ], "inactive": false, "_meta": { "created": "2005-10-23T12:40:40.954Z", "updated": "1972-12-31T20:27:44.183Z", "migrationVersion": -54195477 } } ], "watchers": [ "9cad560d4db24650c76a38ef", "Pronghorn", "Pronghorn", null ], "metrics": { "start_time": 48711965.63893503, "progress": 0.19437124807515405, "end_time": 53042324.0527263, "user": "Pronghorn", "owner": null } } }
{ "title": "result", "allOf": [ { "$ref": "common-api#/definitions/success-response" }, { "type": "object", "properties": { "data": { "$ref": "job-api" } } } ] }