code: public CreateResponse createFlowConfig(FlowConfig flowConfig, boolean triggerListener) throws FlowConfigLoggedException {
      log.info("[GAAS-REST] Create called with flowGroup " + flowConfig.getId().getFlowGroup() + " flowName " + flowConfig.getId().getFlowName());
  
      if (flowConfig.hasExplain()) {
        //Return Error if FlowConfig has explain set. Explain request is only valid for v2 FlowConfig.
        return new CreateResponse(new RestLiServiceException(HttpStatus.S_400_BAD_REQUEST, "FlowConfig with explain not supported."));
      }
  
      FlowSpec flowSpec = createFlowSpecForConfig(flowConfig);
      // Existence of a flow spec in the flow catalog implies that the flow is currently running.
      // If the new flow spec has a schedule we should allow submission of the new flow to accept the new schedule.
      // However, if the new flow spec does not have a schedule, we should allow submission only if it is not running.
      if (!flowConfig.hasSchedule() && this.flowCatalog.exists(flowSpec.getUri())) {
        return new CreateResponse(new ComplexResourceKey<>(flowConfig.getId(), new EmptyRecord()), HttpStatus.S_409_CONFLICT);
      } else {
        this.flowCatalog.put(flowSpec, triggerListener);
        return new CreateResponse(new ComplexResourceKey<>(flowConfig.getId(), new EmptyRecord()), HttpStatus.S_201_CREATED);
      }
    }
docs: Add flowConfig locally and trigger all listeners iff @param triggerListener is set to true