public boolean isSuccessful() {
    for (ShortTaskStatus ts : getRequestStatus().getTasks()) {
      if (HostRoleStatus.valueOf(ts.getStatus()) != HostRoleStatus.COMPLETED) {
        return false;
      }
    }
    return true;
  }
Returns if all the tasks in the logical request have completed state.
ambari-server/src/main/java/org/apache/ambari/server/topology/LogicalRequest.java