code: public FlowStatus getFlowStatus(String flowName, String flowGroup, long flowExecutionId) {
      FlowStatus flowStatus = null;
      Iterator<JobStatus> jobStatusIterator =
          jobStatusRetriever.getJobStatusesForFlowExecution(flowName, flowGroup, flowExecutionId);
  
      if (jobStatusIterator.hasNext()) {
        flowStatus = new FlowStatus(flowName, flowGroup, flowExecutionId, jobStatusIterator);
      }
  
      return flowStatus;
    }
docs: Get the flow status for a specific execution.
  @param flowName
  @param flowGroup
  @param flowExecutionId
  @return the flow status, null is returned if the flow status does not exist