public void complete (TaskExecution aTask) {
    try {
      taskCompletionHandler.handle(aTask);
    }
    catch (Exception e) {
      SimpleTaskExecution exec = SimpleTaskExecution.of(aTask);
      exec.setError(new ErrorObject(e.getMessage(), ExceptionUtils.getStackFrames(e)));
      handleError(exec);
    }
  }
Complete a task of a given job.

@param aTask
         The task to complete.
src/main/java/com/creactiviti/piper/core/Coordinator.java