ViewState(Flow flow, String id) Create a new view state.
Parameters: flow - the owning flow Parameters: id - 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 behavior specific to this state type in polymorphic fashion.
Returns a view selection indicating a response to issue.
Create a new view state.
Parameters: flow - the owning flow Parameters: id - 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 behavior specific to this state type in polymorphic fashion.
Returns a view selection indicating a response to issue. The view
selection typically contains all the data necessary to issue the
response.
Parameters: context - the control context for the currently executing flow, usedby this state to manipulate the flow execution a view selection serving as a response instruction throws: FlowExecutionException - if an exception occurs in this state
Request that the current view selection be reconstituted to support
reissuing the response. This is an idempotent operation that may be
safely called any number of times on a paused execution, used primarily
to support a flow execution redirect.
Parameters: context - the request context the view selection throws: FlowExecutionException - if an exception occurs in this state