public synchronized FlowDefinition getFlowDefinition() throws FlowDefinitionConstructionException { if (assembling) { // must return early assembly result for when a flow calls itself recursively return getFlowBuilder().getFlow(); } if (flowDefinition == null) { logger.debug("Assembling the flow for the first time"); assembleFlow(); } else { if (flowDefinition.inDevelopment() && getFlowBuilder().hasFlowChanged()) { logger.debug("The flow under development has changed; reassembling..."); assembleFlow(); } } return flowDefinition; }
public synchronized FlowDefinition getFlowDefinition() throws FlowDefinitionConstructionException { if (assembling) { // must return early assembly result for when a flow calls itself recursively return getFlowBuilder().getFlow(); } if (flowDefinition == null) { logger.debug("Assembling the flow for the first time"); assembleFlow(); } else { if (flowDefinition.inDevelopment() && getFlowBuilder().hasFlowChanged()) { logger.debug("The flow under development has changed; reassembling..."); assembleFlow(); } } return flowDefinition; }
public synchronized FlowDefinition getFlowDefinition() throws FlowDefinitionConstructionException { if (assembling) { // must return early assembly result for when a flow calls itself recursively return getFlowBuilder().getFlow(); } if (flowDefinition == null) { logger.debug("Assembling the flow for the first time"); assembleFlow(); } else { if (flowDefinition.inDevelopment() && getFlowBuilder().hasFlowChanged()) { logger.debug("The flow under development has changed; reassembling..."); assembleFlow(); } } return flowDefinition; }