/** * Factory method that initially creates the flow implementation during flow builder initialization. Simply * delegates to the configured flow artifact factory by default. * @return the flow instance, initially created but not yet built */ protected Flow createFlow() { String id = getContext().getFlowId(); AttributeMap<Object> attributes = getContext().getFlowAttributes(); return getContext().getFlowArtifactFactory().createFlow(id, attributes); }
protected Flow createFlow() { String flowId = getContext().getFlowId(); AttributeMap<Object> flowAttributes = parseFlowMetaAttributes(flowModel); flowAttributes = getContext().getFlowAttributes().union(flowAttributes); if (IS_SPRING_FACES_PRESENT) { flowAttributes.asMap().put(VALIDATOR_FLOW_ATTR, getLocalContext().getValidator()); flowAttributes.asMap().put(VALIDATION_HINT_RESOLVER_FLOW_ATTR, getLocalContext().getValidationHintResolver()); } Flow flow = getLocalContext().getFlowArtifactFactory().createFlow(flowId, flowAttributes); flow.setApplicationContext(getLocalContext().getApplicationContext()); return flow; }
private Flow parseFlow(String id, AttributeMap attributes, Element flowElement) { if (!isFlowElement(flowElement)) { throw new IllegalStateException("This is not the '" + FLOW_ELEMENT + "' element"); } Flow flow = getFlowArtifactFactory().createFlow(id, parseAttributes(flowElement).union(attributes)); initLocalServiceRegistry(flowElement, flow); return flow; }
public void init(String flowId, AttributeMap attributes) throws FlowBuilderException { setFlow(getFlowArtifactFactory().createFlow(flowId, flowAttributes().union(attributes))); initBuilder(); }
/** * Factory method that initially creates the flow implementation during flow builder initialization. Simply * delegates to the configured flow artifact factory by default. * @return the flow instance, initially created but not yet built */ protected Flow createFlow() { String id = getContext().getFlowId(); AttributeMap<Object> attributes = getContext().getFlowAttributes(); return getContext().getFlowArtifactFactory().createFlow(id, attributes); }
/** * Factory method that initially creates the flow implementation during flow builder initialization. Simply * delegates to the configured flow artifact factory by default. * @return the flow instance, initially created but not yet built */ protected Flow createFlow() { String id = getContext().getFlowId(); AttributeMap attributes = getContext().getFlowAttributes(); return getContext().getFlowArtifactFactory().createFlow(id, attributes); }
protected Flow createFlow() { String flowId = getContext().getFlowId(); AttributeMap<Object> flowAttributes = parseFlowMetaAttributes(flowModel); flowAttributes = getContext().getFlowAttributes().union(flowAttributes); if (IS_SPRING_FACES_PRESENT) { flowAttributes.asMap().put(VALIDATOR_FLOW_ATTR, getLocalContext().getValidator()); flowAttributes.asMap().put(VALIDATION_HINT_RESOLVER_FLOW_ATTR, getLocalContext().getValidationHintResolver()); } Flow flow = getLocalContext().getFlowArtifactFactory().createFlow(flowId, flowAttributes); flow.setApplicationContext(getLocalContext().getApplicationContext()); return flow; }
protected Flow createFlow() { String flowId = getContext().getFlowId(); AttributeMap flowAttributes = parseFlowMetaAttributes(flowModel); flowAttributes = getContext().getFlowAttributes().union(flowAttributes); Flow flow = getLocalContext().getFlowArtifactFactory().createFlow(flowId, flowAttributes); flow.setApplicationContext(getLocalContext().getApplicationContext()); return flow; }