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": "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 imported 3 of 4 documents", "data": { "_id": "394b73ba287c7e6d37a8d226", "uuid": "e32873fc-32cb-48ae-0161-8dcb645a953a", "font_size": 36065154, "type": "resource:action", "created": "1998-07-24T05:16:54.577Z", "last_updated": "2021-01-14T00:57:00.34Z", "createdVersion": "02.961796128.62-3669.1455688458.6320", "lastUpdatedVersion": "462417537.966507.99242706482-9959.53.573042", "canvasVersion": 3, "encodingVersion": 1, "migrationVersion": 30203881, "name": "myCoolDocumentName", "description": null, "preAutomationTime": -51546828.49827101, "sla": 29119688.40345432, "decorators": [ { "type": "encryption", "pointer": "/U//~0/~0/~0" } ], "status": "paused", "tags": [], "error": [ { "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 }, { "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", "message": "aliqua ad Ut do anim" } ], "ancestors": null, "validationErrors": [ { "keyword": "minim pariatur aute laboris ea", "instancePath": "elit culpa voluptate sunt", "schemaPath": "aliqua labore", "message": "dolor cupidatat" }, { "keyword": "cupidatat nulla", "instancePath": "elit proident sed nisi", "schemaPath": "in amet ut eiusmod", "message": "sunt id" }, { "keyword": "nostrud quis tempor sit in", "instancePath": "voluptate nulla sunt est", "schemaPath": "non magna", "message": "consequat velit" } ], "created_by": "Pronghorn", "last_updated_by": null, "tasks": { "workflow_start": { "x": 36452270.67998445, "y": 8720274.956134409, "gridCoordinate": { "x": 25878198.77923608, "y": 18201047.421384335 }, "name": "workflow_start", "summary": "workflow_start", "taskId": "workflow_start", "metrics": { "start_time": 19456335.550490066, "finish_state": "failure", "user": null }, "groups": [ "4dd2f6a6fa835c85e54222a3", "default" ], "iterations": [] }, "workflow_end": { "x": -53337589.531146355, "y": 18337906.117404982, "gridCoordinate": { "x": 77830519.47242999, "y": -8685990.877081111 }, "name": "workflow_end", "summary": "workflow_end", "taskId": "workflow_end", "endTasks": { "incomplete": [ "workflow_start", "error_handler", "workflow_start", "workflow_end", "workflow_start" ], "complete": [ "workflow_start", "e28f", "workflow_start", "workflow_start", "error_handler" ], "error": [ "e28f", "e28f", "error_handler", "error_handler", "3a1f" ] }, "metrics": { "end_time": -87896793.20378983, "run_time": 85202043.75887519 }, "groups": [ "default", "ff33e3359161868cf286016c" ], "iterations": [ "d1fAEfAf-6dc9-08BD-BF2C-B04Eb71eefCF", "1Df912eC-f700-CD3E-AEec-6a26b1F0f817" ] }, "error_handler": { "x": -79321316.04567379, "y": -15765746.783067584, "gridCoordinate": { "x": 57095505.75145653, "y": -7668368.3981600255 }, "name": "childJob", "location": "Broker", "locationType": "reprehenderit deserunt", "app": "aute ullamco dolor", "canvasName": "id voluptate in dolore culpa", "displayName": "irure tempor", "summary": "Duis dolor nostrud amet ea", "description": "et id aliquip veniam aliqua", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/oHuHf2FGi/u/jBLpO" } ] }, "deprecated": true, "scheduled": false, "matched": [ { "key": "Ut", "highlightString": "laboris occaecat labore ad nostrud" }, { "key": "ex incididunt dolor", "highlightString": "sit exercitation" }, { "key": "dolor", "highlightString": "irure enim non ipsum" }, { "key": "reprehenderit Excepteur", "highlightString": "anim adipisicing cupidatat et dolore" } ], "status": "failure", "previous": { "incomplete": [ "workflow_end", "workflow_end", "error_handler", "e28f", "workflow_start" ], "complete": [ "e28f", "e28f", "error_handler", "workflow_start" ], "error": [ "workflow_start", "e28f", "error_handler", "error_handler", "workflow_end" ] }, "taskId": "e28f", "transitions": { "success": [ { "task": "workflow_start", "type": "revert" }, { "task": "3a1f", "type": "standard" }, { "task": "workflow_end", "type": "revert" } ], "failure": [ { "task": "e28f", "type": "loop" }, { "task": "workflow_start", "type": "standard" } ], "error": [ { "task": "workflow_start", "type": "revert" }, { "task": "error_handler", "type": "revert" }, { "task": "e28f", "type": "revert" }, { "task": "3a1f", "type": "standard" }, { "task": "workflow_end", "type": "revert" } ] }, "serverId": "sed", "start_time": "1946-06-10T04:03:04.398Z", "end_time": -24146669.210481912, "finish_state": "failure", "retrySettings": { "state": [ "error", "error", "success", "success" ], "autoRetry": false, "limit": 15007985, "delay": 359646, "count": 5106951, "finishedRetrying": true }, "type": "operation", "actor": null, "groups": [ { "_id": "f9fb45b39fe8b0b1d37b14c2", "provenance": "fugiat et sit Ut", "name": "sint commodo velit exercitation", "description": "nulla tempor Duis", "memberOf": [ { "groupId": "05b743f696ed28c2e5ce230a", "aaaManaged": false } ], "assignedRoles": [ { "roleId": "mollit ullamco eu minim in" }, { "roleId": "esse eiusmod ea consequat Lorem" }, { "roleId": "minim tempor incididunt" }, { "roleId": "cupidatat enim adipisicing" } ], "inactive": false, "_meta": { "created": "1958-06-26T15:05:40.268Z", "updated": "2012-12-21T11:49:08.662Z", "migrationVersion": 87594220 } }, "default", "67799fef9cb924fd60ab17ba", "default", "34fe478c28dd4a6ef86ca457" ], "iterations": [ "189CabE7-78F1-2cd4-9999-cbA970A8A55A" ] }, "c6": { "actor": "job", "groups": [ "default" ], "iterations": [ "af349d4F-5ebd-C822-1ee1-2BaabE07fe17", "E6AC81AB-4Ecc-Cb0E-De78-97EdAAe175A6" ], "x": -79964364.05480112, "y": -34278475.22482992, "gridCoordinate": { "x": -30763289.953769624, "y": -22934594.749582663 }, "name": "ut", "location": "Broker", "locationType": "aute velit", "app": "dolor commodo", "canvasName": "sed quis mollit", "displayName": "do", "summary": "non sunt enim elit in", "description": "ex eu", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/s9/Bl/~1/iPB-Xxy/~0/Nsmf7sOxenQ/S/~1" } ] }, "deprecated": true, "scheduled": false, "matched": [ { "key": "do Ut exercitation deserunt", "highlightString": "pariatur aliquip nulla ut" }, { "key": "mollit velit eu enim", "highlightString": "ut" }, { "key": "mollit aliqua ea dolor amet", "highlightString": "ut veniam" }, { "key": "voluptate", "highlightString": "mollit ipsum" }, { "key": "sunt ea qui", "highlightString": "elit ex" } ], "status": "scheduled", "previous": { "incomplete": [ "e28f", "workflow_end", "error_handler" ], "complete": [ "workflow_start", "error_handler", "workflow_start", "workflow_end", "e28f" ], "error": [ "3a1f", "error_handler", "workflow_end" ] }, "taskId": "error_handler", "transitions": { "success": [ { "task": "workflow_start", "type": "revert" }, { "task": "workflow_start", "type": "loop" }, { "task": "workflow_start", "type": "revert" } ], "failure": [ { "task": "workflow_start", "type": "revert" } ], "error": [ { "task": "workflow_start", "type": "revert" }, { "task": "workflow_end", "type": "revert" }, { "task": "workflow_end", "type": "loop" }, { "task": "e28f", "type": "revert" } ] }, "serverId": "qui voluptate", "start_time": "2003-08-12T07:14:57.566Z", "end_time": -758329.1338504702, "finish_state": "success", "retrySettings": null, "type": "manual", "view": "ea incididunt" } }, "parent": { "job": "laboris dolore ex", "task": "incididunt aute", "iteration": -55331823.056952745, "element": 14299624.81721589 }, "errorHandler": { "actor": "job", "groups": [ "fe13412cbfa01572fa8667a7", { "_id": "7afaf96d190e069a924131bd", "provenance": "mollit esse", "name": "minim Lorem", "description": "reprehenderit", "memberOf": [ { "groupId": "a9b7912316f171702d3181af", "aaaManaged": true }, { "groupId": "d9661356a9a689fa13a9a18d", "aaaManaged": true } ], "assignedRoles": [ { "roleId": "ut voluptate dolor dolore enim" } ], "inactive": false, "_meta": { "created": "1993-05-22T00:00:05.564Z", "updated": "1948-08-25T22:42:14.004Z", "migrationVersion": -65211326 } } ], "iterations": [], "x": 8714468.493392065, "y": -74239957.10209757, "gridCoordinate": { "x": -174600.35600435734, "y": 67726120.75118047 }, "name": "sunt exercitation tempor", "location": "Broker", "locationType": null, "app": "aute mollit pariatur", "canvasName": "sint", "displayName": "consectetur eiusmod cillum in", "summary": "cupidatat aliqua", "description": "et amet", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/~1/~0/nh/~1/X-x778v+R" }, { "type": "encryption", "pointer": "/~0/imD,/SuQny" } ] }, "deprecated": true, "scheduled": true, "matched": [ { "key": "sunt", "highlightString": "do id commodo officia nisi" }, { "key": "ex consectetur ut Excepteur", "highlightString": "nisi sit" }, { "key": "nisi elit est", "highlightString": "eiusmod irure" }, { "key": "mollit in", "highlightString": "nulla irure in" } ], "status": "error", "previous": { "incomplete": [ "workflow_start", "workflow_start", "error_handler", "workflow_end", "3a1f" ], "complete": [ "workflow_start" ], "error": [ "3a1f", "3a1f" ] }, "taskId": "error_handler", "transitions": { "success": [ { "task": "error_handler", "type": "loop" }, { "task": "3a1f", "type": "loop" }, { "task": "3a1f", "type": "revert" }, { "task": "workflow_start", "type": "standard" }, { "task": "3a1f", "type": "standard" } ], "failure": [ { "task": "workflow_start", "type": "standard" }, { "task": "3a1f", "type": "revert" }, { "task": "3a1f", "type": "revert" }, { "task": "workflow_start", "type": "revert" }, { "task": "e28f", "type": "revert" } ], "error": [ { "task": "workflow_end", "type": "standard" }, { "task": "workflow_end", "type": "revert" }, { "task": "3a1f", "type": "revert" }, { "task": "e28f", "type": "revert" } ] }, "serverId": "ut consequat nulla ut eu", "start_time": "2010-07-30T15:11:08.904Z", "end_time": 96965164.18387002, "finish_state": "failure", "retrySettings": { "state": [ "error", "error", "error" ], "autoRetry": false, "limit": 75491199, "delay": 36559696, "count": 22444291, "finishedRetrying": true }, "type": "manual", "view": "in irure elit dolor in" }, "groups": [ "default" ], "watchers": [ { "_id": "8a996bd4b72000eaddb391e9", "provenance": "sit", "username": "veniam non", "firstname": "et qui in consequat", "memberOf": [ { "groupId": "ebb6bc96ff8e6a975f24855e", "aaaManaged": false } ], "assignedRoles": [ { "roleId": "eu Lorem tempor cillum proident" }, { "roleId": "pariatur voluptate officia occaecat" }, { "roleId": "voluptate nulla reprehenderit id non" } ], "inactive": true, "lastLogin": "1993-03-25T05:07:49.028Z", "_meta": { "created": "2004-06-13T17:03:33.189Z", "updated": "2018-12-07T06:42:58.39Z", "migrationVersion": 21349974 }, "email": "dolore magna ut" }, "e1e5cec91f38c279572ddd86", null, "64cd6b670e4f1fabd3597f0b", "d14b3e6904ea6184d1b3f142" ], "metrics": { "start_time": 1203816.7462524772, "progress": 0.25221602393896814, "end_time": 38867174.14891866, "user": null, "owner": { "_id": "62046d3569202315989ca52e", "provenance": "ullamco dolor eiusmod", "username": "id", "firstname": "anim proident in ut velit", "memberOf": [ { "groupId": "08b9bec1531fea9289d3207f", "aaaManaged": true }, { "groupId": "26aba3e84076b734536717d7", "aaaManaged": false }, { "groupId": "99be7fb8fde18490060826f4", "aaaManaged": true }, { "groupId": "e2438bef061f47e91e9b4ce8", "aaaManaged": true }, { "groupId": "379b2b8d8494d20420aa725c", "aaaManaged": false } ], "assignedRoles": [ { "roleId": "pariatur quis ut" } ], "inactive": true, "lastLogin": "1962-08-13T07:11:04.776Z", "_meta": { "created": "2012-07-23T22:04:13.358Z", "updated": "1985-07-12T02:14:36.279Z", "migrationVersion": 98621902 }, "email": "veniam in adipisicing deserunt" } } } }
{ "title": "result", "allOf": [ { "$ref": "common-api#/definitions/success-response" }, { "type": "object", "properties": { "data": { "$ref": "job-api" } } } ] }