private void parseAndAddDecisionState(DecisionStateModel state, Flow flow) { MutableAttributeMap<Object> attributes = parseMetaAttributes(state.getAttributes()); parseAndPutSecured(state.getSecured(), attributes); getLocalContext().getFlowArtifactFactory().createDecisionState(state.getId(), flow, parseActions(state.getOnEntryActions()), parseIfs(state.getIfs()), parseExceptionHandlers(state.getExceptionHandlers(), null), parseActions(state.getOnExitActions()), attributes); }
/** * Adds a decision state to the flow built by this builder. * @param stateId the state identifier * @param transitions the transitions (paths) out of this state * @return the fully constructed decision state instance */ protected State addDecisionState(String stateId, Transition[] transitions) { return getFlowArtifactFactory().createDecisionState(stateId, getFlow(), null, transitions, null, null, null); }
/** * Adds a decision 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 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 decision state instance */ protected State addDecisionState(String stateId, Action[] entryActions, Transition[] transitions, FlowExecutionExceptionHandler[] exceptionHandlers, Action[] exitActions, AttributeMap attributes) { return getFlowArtifactFactory().createDecisionState(stateId, getFlow(), entryActions, transitions, exceptionHandlers, exitActions, attributes); }
private void parseAndAddDecisionState(Element element, Flow flow) { getFlowArtifactFactory() .createDecisionState(parseId(element), flow, parseEntryActions(element), parseIfs(element), parseExceptionHandlers(element), parseExitActions(element), parseAttributes(element)); }
/** * Adds a decision state to the flow built by this builder. * @param stateId the state identifier * @param decisionCriteria the criteria that defines the decision * @param trueStateId the target state on a "true" decision * @param falseStateId the target state on a "false" decision * @return the fully constructed decision state instance */ protected State addDecisionState(String stateId, TransitionCriteria decisionCriteria, String trueStateId, String falseStateId) { Transition thenTransition = getFlowArtifactFactory().createTransition(to(trueStateId), decisionCriteria, null, null); Transition elseTransition = getFlowArtifactFactory().createTransition(to(falseStateId), null, null, null); return getFlowArtifactFactory().createDecisionState(stateId, getFlow(), null, new Transition[] { thenTransition, elseTransition }, null, null, null); }
private void parseAndAddDecisionState(DecisionStateModel state, Flow flow) { MutableAttributeMap attributes = parseMetaAttributes(state.getAttributes()); parseAndPutSecured(state.getSecured(), attributes); getLocalContext().getFlowArtifactFactory().createDecisionState(state.getId(), flow, parseActions(state.getOnEntryActions()), parseIfs(state.getIfs()), parseExceptionHandlers(state.getExceptionHandlers(), null), parseActions(state.getOnExitActions()), attributes); }
private void parseAndAddDecisionState(DecisionStateModel state, Flow flow) { MutableAttributeMap<Object> attributes = parseMetaAttributes(state.getAttributes()); parseAndPutSecured(state.getSecured(), attributes); getLocalContext().getFlowArtifactFactory().createDecisionState(state.getId(), flow, parseActions(state.getOnEntryActions()), parseIfs(state.getIfs()), parseExceptionHandlers(state.getExceptionHandlers(), null), parseActions(state.getOnExitActions()), attributes); }