Summary
          Finish a task
          Description
          Finish a task and set its output data
          Route
          POST /workflow_engine/jobs/finish_task/:job_id/:task_id
          Roles
          
            admin
engineering
support
apiread
          
          Parameters
          
            DetailsExampleSchema
          
          
            
              
                | Name | Type | Required | Description | 
            
            
              
    | job_id | string | yes | ID of the Job. | 
    | task_id | string | yes | ID of the Task within that job. | 
    | task_data | object | yes | Data of the completed Task. | 
            
          
          
            Copied to Clipboard
            
            {
  "task_data": {
    "finish_state": "loop",
    "variables": {
      "incoming": {
        "inputVariable": "inputValue"
      },
      "outgoing": {
        "outputVariable": "outputValue"
      },
      "translations": {
        "translationVariable": "translationValue"
      },
      "error": ""
    }
  }
}
           
          
          Return
          
            DetailsExampleSchema
          
          
            
              
                | Name | Type | Description | 
            
            
              
                | job_details | object | The Current Job Object | 
            
          
          
            Copied to Clipboard
            
            {
  "_id": "4430ceadbd694aa79994ad47",
  "name": "8917Test2",
  "tasks": {
    "workflow_start": {
      "name": "workflow_start",
      "groups": [],
      "x": 0.08412582297000731,
      "y": 0.4968944099378882,
      "status": "complete",
      "metrics": {
        "owner": "Pronghorn",
        "start_time": 1555430149763,
        "end_time": 1555430169683,
        "run_time": 75069184,
        "finish_state": "canceled",
        "server_id": "ac:de:48:00:11:22:3000",
        "app": {
          "id": "WorkflowBuilder",
          "version": "3.2.1"
        }
      }
    },
    "workflow_end": {
      "name": "workflow_end",
      "groups": [],
      "x": 0.08412582297000731,
      "y": 0.4968944099378882,
      "status": "complete",
      "metrics": {
        "owner": "Pronghorn",
        "start_time": 1555430149763,
        "end_time": 1555430169683,
        "run_time": 75069184,
        "finish_state": "canceled",
        "server_id": "ac:de:48:00:11:22:3000",
        "app": {
          "id": "WorkFlowEngine",
          "version": "3.2.1"
        }
      }
    }
  },
  "transitions": {
    "workflow_start": {
      "6a90": {
        "type": "standard",
        "state": "success"
      }
    },
    "6a90": {
      "workflow_end": {
        "type": "standard",
        "state": "success"
      }
    }
  },
  "font_size": 12,
  "created": "2018-07-26T19:37:05.000Z",
  "created_by": "admin@pronghorn",
  "last_updated": "2018-08-02T15:56:12.912Z",
  "last_updated_by": "5b3496d74da02e9dfa0b2e91",
  "groups": [],
  "type": "automation",
  "watchers": [
    "4321abcdef694aa79dae47ad",
    "5cb7b531d06cceb89fd21b1c",
    "4321abcdef694aa79dae47ad",
    "5cb7b531d06cceb89fd21b1c",
    "5cb7b531d06cceb89fd21b1c"
  ],
  "metrics": {
    "owner": "Pronghorn",
    "start_time": 1555430149763,
    "end_time": 1555430169683,
    "run_time": 75069184,
    "finish_state": "complete",
    "server_id": "ac:de:48:00:11:22:3000",
    "app": {
      "id": "WorkFlowEngine",
      "version": "1.2.3"
    }
  },
  "status": "canceled",
  "locked": true,
  "error": [
    {
      "task": "job",
      "message": "No available transitions found from completed task(s)",
      "timestamp": 1555471643117
    }
  ]
}