private void parseAndAddSubflowState(SubflowStateModel state, Flow flow) { MutableAttributeMap<Object> attributes = parseMetaAttributes(state.getAttributes()); parseAndPutSecured(state.getSecured(), attributes); getLocalContext().getFlowArtifactFactory().createSubflowState(state.getId(), flow, parseActions(state.getOnEntryActions()), parseSubflowExpression(state.getSubflow()), parseSubflowAttributeMapper(state), parseTransitions(state.getTransitions()), parseExceptionHandlers(state.getExceptionHandlers(), state.getTransitions()), parseActions(state.getOnExitActions()), attributes); }
/** * Adds a subflow state to the flow built by this builder. * @param stateId the state identifier * @param subflow the flow that will act as the subflow * @param attributeMapper the mapper to map subflow input and output attributes * @param transitions the transitions (paths) out of the state * @return the fully constructed subflow state instance */ protected State addSubflowState(String stateId, Flow subflow, FlowAttributeMapper attributeMapper, Transition[] transitions) { return getFlowArtifactFactory().createSubflowState(stateId, getFlow(), null, subflow, attributeMapper, transitions, null, null, null); }
/** * Adds a subflow state to the flow built by this builder. * @param stateId the state identifier * @param subflow the flow that will act as the subflow * @param attributeMapper the mapper to map subflow input and output attributes * @param transition the single transition (path) out of the state * @return the fully constructed subflow state instance */ protected State addSubflowState(String stateId, Flow subflow, FlowAttributeMapper attributeMapper, Transition transition) { return getFlowArtifactFactory().createSubflowState(stateId, getFlow(), null, subflow, attributeMapper, new Transition[] { transition }, null, null, null); }
/** * Adds a subflow state to the flow built by this builder. * @param stateId the state identifier * @param entryActions the entry actions to execute when the state enters * @param subflow the flow that will act as the subflow * @param attributeMapper the mapper to map subflow input and output attributes * @param transitions the transitions (paths) out of this state * @param exceptionHandlers the exception handlers to handle exceptions thrown by the state * @param exitActions the exit actions to execute when the state exits * @param attributes attributes to assign to the state that may be used to affect state construction and execution * @return the fully constructed subflow state instance */ protected State addSubflowState(String stateId, Action[] entryActions, Flow subflow, FlowAttributeMapper attributeMapper, Transition[] transitions, FlowExecutionExceptionHandler[] exceptionHandlers, Action[] exitActions, AttributeMap attributes) { return getFlowArtifactFactory().createSubflowState(stateId, getFlow(), entryActions, subflow, attributeMapper, transitions, exceptionHandlers, exitActions, attributes); }
private void parseAndAddSubflowState(Element element, Flow flow) { getFlowArtifactFactory().createSubflowState(parseId(element), flow, parseEntryActions(element), parseSubflow(element), parseFlowAttributeMapper(element), parseTransitions(element), parseExceptionHandlers(element), parseExitActions(element), parseAttributes(element)); }
private void parseAndAddSubflowState(SubflowStateModel state, Flow flow) { MutableAttributeMap<Object> attributes = parseMetaAttributes(state.getAttributes()); parseAndPutSecured(state.getSecured(), attributes); getLocalContext().getFlowArtifactFactory().createSubflowState(state.getId(), flow, parseActions(state.getOnEntryActions()), parseSubflowExpression(state.getSubflow()), parseSubflowAttributeMapper(state), parseTransitions(state.getTransitions()), parseExceptionHandlers(state.getExceptionHandlers(), state.getTransitions()), parseActions(state.getOnExitActions()), attributes); }
private void parseAndAddSubflowState(SubflowStateModel state, Flow flow) { MutableAttributeMap attributes = parseMetaAttributes(state.getAttributes()); parseAndPutSecured(state.getSecured(), attributes); getLocalContext().getFlowArtifactFactory().createSubflowState(state.getId(), flow, parseActions(state.getOnEntryActions()), parseSubflowExpression(state.getSubflow()), parseSubflowAttributeMapper(state), parseTransitions(state.getTransitions()), parseExceptionHandlers(state.getExceptionHandlers(), state.getTransitions()), parseActions(state.getOnExitActions()), attributes); }