/** * Called on completion of the subflow to handle the subflow result event as determined by the end state reached by * the subflow. */ public boolean handleEvent(RequestControlContext context) { if (subflowAttributeMapper != null) { AttributeMap<Object> subflowOutput = context.getCurrentEvent().getAttributes(); if (logger.isDebugEnabled()) { logger.debug("Mapping subflow output " + subflowOutput); } subflowAttributeMapper.mapSubflowOutput(subflowOutput, context); } return super.handleEvent(context); }
/** * Handle the last event that occurred against an active session of this flow. * @param context the flow execution control context */ public boolean handleEvent(RequestControlContext context) { TransitionableState currentState = getCurrentTransitionableState(context); try { return currentState.handleEvent(context); } catch (NoMatchingTransitionException e) { // try the flow level transition set for a match Transition transition = globalTransitionSet.getTransition(context); if (transition != null) { return context.execute(transition); // return transition.execute(currentState, context); } else { // no matching global transition => let the original exception // propagate throw e; } } }
/** * Called on completion of the subflow to handle the subflow result event as determined by the end state reached by * the subflow. */ public boolean handleEvent(RequestControlContext context) { if (subflowAttributeMapper != null) { AttributeMap<Object> subflowOutput = context.getCurrentEvent().getAttributes(); if (logger.isDebugEnabled()) { logger.debug("Mapping subflow output " + subflowOutput); } subflowAttributeMapper.mapSubflowOutput(subflowOutput, context); } return super.handleEvent(context); }
/** * Called on completion of the subflow to handle the subflow result event as determined by the end state reached by * the subflow. */ public boolean handleEvent(RequestControlContext context) { if (subflowAttributeMapper != null) { AttributeMap subflowOutput = context.getCurrentEvent().getAttributes(); if (logger.isDebugEnabled()) { logger.debug("Mapping subflow output " + subflowOutput); } subflowAttributeMapper.mapSubflowOutput(subflowOutput, context); } return super.handleEvent(context); }
/** * Handle the last event that occurred against an active session of this flow. * @param context the flow execution control context */ public boolean handleEvent(RequestControlContext context) { TransitionableState currentState = getCurrentTransitionableState(context); try { return currentState.handleEvent(context); } catch (NoMatchingTransitionException e) { // try the flow level transition set for a match Transition transition = globalTransitionSet.getTransition(context); if (transition != null) { return context.execute(transition); // return transition.execute(currentState, context); } else { // no matching global transition => let the original exception // propagate throw e; } } }
/** * Handle the last event that occurred against an active session of this flow. * @param context the flow execution control context */ public boolean handleEvent(RequestControlContext context) { TransitionableState currentState = getCurrentTransitionableState(context); try { return currentState.handleEvent(context); } catch (NoMatchingTransitionException e) { // try the flow level transition set for a match Transition transition = globalTransitionSet.getTransition(context); if (transition != null) { return context.execute(transition); // return transition.execute(currentState, context); } else { // no matching global transition => let the original exception // propagate throw e; } } }