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 ipsum ut officia sit" } }
{ "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 imported 3 of 4 documents", "data": { "_id": "5e108406fc562e52fa69b236", "uuid": "ace929ea-c746-cfe3-154a-86700e15cf40", "font_size": -23731467, "type": "resource:action", "created": "1985-10-20T07:12:03.598Z", "last_updated": "1968-10-17T21:34:48.043Z", "createdVersion": "5.452.2357", "lastUpdatedVersion": "903465688.345.5172132-9318.2528.580011429.74884", "canvasVersion": 1.5, "encodingVersion": 1, "migrationVersion": -40442526, "name": "myCoolDocumentName", "description": "Some helpful information about the document", "preAutomationTime": -10476931.476139888, "sla": -35959274.64069168, "decorators": [ { "type": "encryption", "pointer": "/e54cSPMz" }, { "type": "encryption", "pointer": "/RdsgJ-b/J2jw/~0" }, { "type": "encryption", "pointer": "/~0/cp,,slJ/~0/dYydOsjsm/~0/cn/~1/fyO/~0/enGqwf/fSCfih" }, { "type": "encryption", "pointer": "/sfXyyEw/NWaczL+R/VvxKulI0D/~1/bkGvs0/Jxs/1JV/~1" } ], "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": "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_start", "name": "myCoolDocumentName", "message": "Ut in consectetur enim" }, { "task": "workflow_start", "name": "myCoolDocumentName", "message": "ut consectetur" }, { "task": "workflow_start", "name": "myCoolDocumentName", "message": "exercitation adipisicing in" }, { "task": "3a1f", "name": "myCoolDocumentName" } ], "ancestors": [ "201f7a63387296c1c27471ac" ], "validationErrors": [ { "keyword": "dolore esse tempor", "instancePath": "aute minim commodo dolore cupidatat", "schemaPath": "quis in ipsum", "message": "sunt" } ], "created_by": "20caaf45dba9e57713478bb8", "last_updated_by": "Pronghorn", "tasks": { "workflow_start": { "x": -59247403.05439755, "y": -75762347.85283495, "gridCoordinate": { "x": -15591765.54100889, "y": 99466880.24033245 }, "name": "workflow_start", "summary": "workflow_start", "taskId": "workflow_start", "metrics": { "start_time": 71099393.92262357, "finish_state": "failure", "user": null }, "groups": [ "8dc340233fa519a74a3a0eea", { "_id": "b4b7adadc537534d3c489c7d", "provenance": "officia in mollit", "name": "proident magna exercitation", "description": "cupidatat magna est quis amet", "memberOf": [ { "groupId": "26a44108ed3c94ec8e14b13a", "aaaManaged": true }, { "groupId": "9e8785ab843baba76617d151", "aaaManaged": false }, { "groupId": "ead418e2eea927ec7703544d", "aaaManaged": true }, { "groupId": "e89157159c9ad8b10428ba3c", "aaaManaged": false } ], "assignedRoles": [ { "roleId": "dolore" }, { "roleId": "ullamco et proident in Ut" }, { "roleId": "dolore aliquip ullamco dolor consequat" }, { "roleId": "consectetur dolore voluptate cillum" }, { "roleId": "eu ullamco officia dolor sed" } ], "inactive": true, "_meta": { "created": "1973-04-28T23:46:32.929Z", "updated": "1978-03-09T20:01:11.019Z", "migrationVersion": -75562044 } }, { "_id": "57a46624a37450744ef1d10f", "provenance": "minim consectetur", "name": "in sint", "description": "laborum deserunt sunt", "memberOf": [ { "groupId": "27626b42bab4e032e1fa86b6", "aaaManaged": false } ], "assignedRoles": [ { "roleId": "nulla" }, { "roleId": "elit sed deserunt cillum Excepteur" }, { "roleId": "laborum mollit reprehenderit in ad" }, { "roleId": "veniam culpa ad sed in" } ], "inactive": false, "_meta": { "created": "1973-02-08T03:35:56.484Z", "updated": "1977-12-15T03:24:11.046Z", "migrationVersion": -50992488 } } ], "iterations": [] }, "workflow_end": { "x": 32680600.323475197, "y": -90668810.77835251, "gridCoordinate": { "x": -69875212.77748829, "y": -53720377.24644327 }, "name": "workflow_end", "summary": "workflow_end", "taskId": "workflow_end", "endTasks": { "incomplete": [ "error_handler", "3a1f", "workflow_start", "workflow_start", "workflow_start" ], "complete": [ "workflow_end", "error_handler", "e28f" ], "error": [ "workflow_start" ] }, "metrics": { "end_time": 13178782.81898737, "run_time": -22703221.38931045 }, "groups": [ "default" ], "iterations": [ "74a8ece8-04d7-bF9a-2CAe-C4CeCbAfcdDA" ] }, "error_handler": { "x": -81697913.31485614, "y": 13412323.247686371, "gridCoordinate": { "x": -75281776.31893525, "y": -98064616.09574288 }, "name": "childJob", "location": "Broker", "locationType": null, "app": "occaecat cillum nulla", "canvasName": "officia", "displayName": "labore aliqua ut irure", "summary": "sint consequat officia sit", "description": "amet enim anim tempor proident", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/~1/~1/l1.xGT/~1/~1/xeFnOUmps,H/~0/~1/~1" }, { "type": "encryption", "pointer": "/wKT+iKbMCnW/jFymlv/~0/~1/~1/i.QKt/J/T,z./~1/ey//decj" }, { "type": "encryption", "pointer": "/UCs2-b.3/m/~0/j-gub/~1" }, { "type": "encryption", "pointer": "/KaHy,8wH/~1/sGq7oAe3p+/F/~0/DE" } ] }, "deprecated": false, "scheduled": false, "matched": [ { "key": "Lorem laboris velit Excepteur laborum", "highlightString": "ad fugiat ex" }, { "key": "incididunt fugiat", "highlightString": "fugiat officia" } ], "status": "failure", "previous": { "incomplete": [ "error_handler" ], "complete": [ "3a1f", "3a1f", "3a1f" ], "error": [ "workflow_start", "error_handler" ] }, "taskId": "error_handler", "transitions": { "success": [ { "task": "workflow_end", "type": "standard" } ], "failure": [ { "task": "workflow_start", "type": "standard" } ], "error": [ { "task": "workflow_start", "type": "standard" } ] }, "serverId": "ullamco", "start_time": "2000-10-04T22:35:15.347Z", "end_time": -41148778.02116692, "finish_state": "failure", "retrySettings": null, "type": "operation", "actor": "90077829ddbfdfd4ce7096ef", "groups": [ "default", { "_id": "06aac41046e1f16b77555eb3", "provenance": "qui sed", "name": "consectetur cillum ut", "description": "tempor cillum Lorem", "memberOf": [ { "groupId": "75d715f462a06db177e5b4f7", "aaaManaged": true }, { "groupId": "92998e5356768ce63bb94e84", "aaaManaged": false } ], "assignedRoles": [ { "roleId": "sunt velit" }, { "roleId": "consequat pariatur" }, { "roleId": "quis elit culpa labore" }, { "roleId": "aute veniam" } ], "inactive": true, "_meta": { "created": "1973-09-15T11:40:03.711Z", "updated": "1955-08-10T22:35:06.298Z", "migrationVersion": -35155318 } } ], "iterations": [] }, "7abf": { "x": -14157907.248470768, "y": -54205366.59013417, "gridCoordinate": { "x": -99396392.65405264, "y": -40572053.65763084 }, "name": "ullamco elit ipsum", "location": "Adapter", "locationType": null, "app": "pariatur deserunt", "canvasName": "culpa", "displayName": "sint", "summary": "velit", "description": "cupidatat minim", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/ZrKNWFxmi/~1/~0/~0/Qx/KdL/~1/njQuP/P0khLh.st+" }, { "type": "encryption", "pointer": "/~1/HBmpL0/~1/KZ230H,/n/Wd/PrfDJ3D/~1/~1/w.qOQ5I4" } ] }, "deprecated": false, "scheduled": false, "matched": [ { "key": "sunt nisi veniam esse proident", "highlightString": "do" }, { "key": "mollit esse deserunt do", "highlightString": "dolor dolore sed dolor" }, { "key": "esse anim quis aute", "highlightString": "deserunt et incididunt ad" }, { "key": "mollit magna velit culpa", "highlightString": "occaecat Duis elit eu Excepteur" }, { "key": "est anim ea sunt", "highlightString": "Duis exercitation ex Excepteur" } ], "status": "scheduled", "previous": { "incomplete": [ "workflow_start", "e28f" ], "complete": [ "error_handler", "workflow_start", "3a1f" ], "error": [ "e28f" ] }, "taskId": "3a1f", "transitions": { "success": [ { "task": "workflow_end", "type": "revert" }, { "task": "3a1f", "type": "revert" } ], "failure": [ { "task": "workflow_start", "type": "standard" }, { "task": "e28f", "type": "revert" } ], "error": [ { "task": "workflow_start", "type": "revert" }, { "task": "3a1f", "type": "standard" } ] }, "serverId": "quis labore pariatur culpa sunt", "start_time": "1990-08-31T22:32:55.783Z", "end_time": 77493516.9043423, "finish_state": "error", "retrySettings": null, "type": "operation", "actor": "job", "groups": [ "default" ], "iterations": [ "acAA086E-1baF-b88c-E8e6-9e2afBe3441C", "3bDcCb92-dab8-5e7c-ee6c-24C2a07eAe7B", "EE0B3b51-a07d-BEee-faAF-44262e2eCea0" ] } }, "parent": { "job": "exercitation sunt in", "task": "exercitation aute", "iteration": 63514395.25111714, "element": 80981930.96074358 }, "errorHandler": null, "groups": [ "c5a34ad48825dd5c3e0d0feb", "dbfe2f8e85ff68ca8424adaf", "c6f48f228c331bbb2cb60434", "default" ], "watchers": [ "Pronghorn", "Pronghorn" ], "metrics": { "start_time": -57902575.18399442, "progress": 0.5496174580082367, "end_time": -56657134.167092726, "user": "fa86e9acb06261ea9118eb52", "owner": null } } }
{ "title": "result", "allOf": [ { "$ref": "common-api#/definitions/success-response" }, { "type": "object", "properties": { "data": { "$ref": "job-api" } } } ] }