private void parseAndAddActionState(ActionStateModel state, Flow flow) { MutableAttributeMap<Object> attributes = parseMetaAttributes(state.getAttributes()); parseAndPutSecured(state.getSecured(), attributes); getLocalContext().getFlowArtifactFactory().createActionState(state.getId(), flow, parseActions(state.getOnEntryActions()), parseActions(state.getActions()), parseTransitions(state.getTransitions()), parseExceptionHandlers(state.getExceptionHandlers(), state.getTransitions()), parseActions(state.getOnExitActions()), attributes); }
/** * Adds an action state to the flow built by this builder. * @param stateId the state identifier * @param action the single action to execute when the state is entered * @param transition the single transition (path) out of this state * @return the fully constructed action state instance */ protected State addActionState(String stateId, Action action, Transition transition) { return getFlowArtifactFactory().createActionState(stateId, getFlow(), null, new Action[] { action }, new Transition[] { transition }, null, null, null); }
/** * Adds an action state to the flow built by this builder. * @param stateId the state identifier * @param action the single action to execute when the state is entered * @param transitions the transitions (paths) out of this state * @return the fully constructed action state instance */ protected State addActionState(String stateId, Action action, Transition[] transitions) { return getFlowArtifactFactory().createActionState(stateId, getFlow(), null, new Action[] { action }, transitions, null, null, null); }
/** * Adds an action state to the flow built by this builder. * @param stateId the state identifier * @param action the single action to execute when the state is entered * @param transition the single transition (path) out of this state * @param exceptionHandler the exception handler to handle exceptions thrown by the action * @return the fully constructed action state instance */ protected State addActionState(String stateId, Action action, Transition transition, FlowExecutionExceptionHandler exceptionHandler) { return getFlowArtifactFactory().createActionState(stateId, getFlow(), null, new Action[] { action }, new Transition[] { transition }, new FlowExecutionExceptionHandler[] { exceptionHandler }, null, null); }
/** * Adds an action state to the flow built by this builder. * @param stateId the state identifier * @param entryActions any generic entry actions to add to the state * @param actions the actions to execute in a chain when the state is entered * @param transitions the transitions (paths) out of this state * @param exceptionHandlers the exception handlers to handle exceptions thrown by the actions * @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 action state instance */ protected State addActionState(String stateId, Action[] entryActions, Action[] actions, Transition[] transitions, FlowExecutionExceptionHandler[] exceptionHandlers, Action[] exitActions, AttributeMap attributes) { return getFlowArtifactFactory().createActionState(stateId, getFlow(), entryActions, actions, transitions, exceptionHandlers, exitActions, attributes); }
private void parseAndAddActionState(Element element, Flow flow) { getFlowArtifactFactory().createActionState(parseId(element), flow, parseEntryActions(element), parseAnnotatedActions(element), parseTransitions(element), parseExceptionHandlers(element), parseExitActions(element), parseAttributes(element)); }
private void parseAndAddActionState(ActionStateModel state, Flow flow) { MutableAttributeMap<Object> attributes = parseMetaAttributes(state.getAttributes()); parseAndPutSecured(state.getSecured(), attributes); getLocalContext().getFlowArtifactFactory().createActionState(state.getId(), flow, parseActions(state.getOnEntryActions()), parseActions(state.getActions()), parseTransitions(state.getTransitions()), parseExceptionHandlers(state.getExceptionHandlers(), state.getTransitions()), parseActions(state.getOnExitActions()), attributes); }
private void parseAndAddActionState(ActionStateModel state, Flow flow) { MutableAttributeMap attributes = parseMetaAttributes(state.getAttributes()); parseAndPutSecured(state.getSecured(), attributes); getLocalContext().getFlowArtifactFactory().createActionState(state.getId(), flow, parseActions(state.getOnEntryActions()), parseActions(state.getActions()), parseTransitions(state.getTransitions()), parseExceptionHandlers(state.getExceptionHandlers(), state.getTransitions()), parseActions(state.getOnExitActions()), attributes); }