A simple transitionable state that when entered will execute the first
transition whose matching criteria evaluates to true in the
RequestContext context of the current request.
A decision state is a convenient, simple way to encapsulate reusable state
transition logic in one place.
author: Keith Donald
Constructor Summary
public
DecisionState(Flow flow, String stateId) Creates a new decision state.
Parameters: flow - the owning flow Parameters: stateId - the state identifier (must be unique to the flow) throws: IllegalArgumentException - when this state cannot be added to givenflow, e.g.
doEnter(RequestControlContext context) Specialization of State's doEnter template method that
executes behaviour specific to this state type in polymorphic fashion.
Creates a new decision state.
Parameters: flow - the owning flow Parameters: stateId - the state identifier (must be unique to the flow) throws: IllegalArgumentException - when this state cannot be added to givenflow, e.g. because the id is not unique
Specialization of State's doEnter template method that
executes behaviour specific to this state type in polymorphic fashion.
Simply looks up the first transition that matches the state of the
context and executes it.
Parameters: context - the control context for the currently executing flow, usedby this state to manipulate the flow execution a view selection containing model and view information needed torender the results of the state execution throws: FlowExecutionException - if an exception occurs in this state
Methods inherited from org.springframework.webflow.engine.TransitionableState