code: public boolean isCompleted() {
      WorkingState state = getWorkingState();
      return state == WorkingState.SUCCESSFUL || state == WorkingState.COMMITTED || state == WorkingState.FAILED;
    }
docs: Return whether the task has completed running or not.
  
  @return {@code true} if the task has completed or {@code false} otherwise