@RequiresSession
  public StageEntity findByActionId(String actionId) {
    long[] ids = StageUtils.getRequestStage(actionId);
    StageEntityPK pk = new StageEntityPK();
    pk.setRequestId(ids[0]);
    pk.setStageId(ids[1]);
    return findByPK(pk);
  }
Mapping of valid status transitions that that are driven by manual input.
ambari-server/src/main/java/org/apache/ambari/server/orm/dao/StageDAO.java