|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface FlowExecution
Represents a client instance of an executing flow. This is the central facade interface for managing an execution of a single flow.
Typically, when the browser requests to execute a new flow, an instance of an object implementing this interface is created by a controlling FlowExecutionManager. After creation, the start operation is called, which causes this execution to activate the requested flow as the "root flow" and enter that flow's start state. After starting, when control is returned back to the caller, this execution is saved in some form of storage, for example in the HttpSession or a client-side hidden form field for later restoration and manipulation.
Subsequent requests into the web flow system to manipulate an existing executing flow trigger restoration and rehydration of this object, followed by an invocation of the signalEvent operation. This continues until an event causes this flow execution to end, at which time it is removed from storage and discarded.
FlowExecutionManager,
FlowExecutionStorage| Method Summary | |
|---|---|
FlowExecutionListenerList |
getListeners()
Return a list of listeners monitoring the lifecycle of this flow execution. |
void |
rehydrate(FlowLocator flowLocator,
FlowExecutionListenerLoader listenerLoader,
TransactionSynchronizer transactionSynchronizer)
Rehydrate this flow execution after deserialization. |
ViewDescriptor |
signalEvent(Event sourceEvent)
Signal an occurence of the specified event in the current state of this executing flow. |
ViewDescriptor |
start(Event sourceEvent)
Start a flow execution, transitioning the flow to the start state and returning the starting model and view descriptor. |
| Methods inherited from interface org.springframework.webflow.FlowExecutionContext |
|---|
getActiveFlow, getActiveSession, getCurrentState, getRootFlow |
| Methods inherited from interface org.springframework.webflow.FlowExecutionStatistics |
|---|
getCaption, getCreationTimestamp, getKey, getLastEventId, getLastRequestTimestamp, getUptime, isActive, isRootFlowActive |
| Method Detail |
|---|
ViewDescriptor start(Event sourceEvent)
throws java.lang.IllegalStateException
sourceEvent - the event that occured that triggered flow
execution creation
java.lang.IllegalStateException - if this execution has already been started,
or no state is marked as the start state.
ViewDescriptor signalEvent(Event sourceEvent)
throws FlowNavigationException,
java.lang.IllegalStateException
sourceEvent - the event that occured within the current state of this flow
execution.
FlowNavigationException - if the signaled event does not map
to any state transitions in the current state
java.lang.IllegalStateException - if the flow execution is not active and
thus is no longer (or not yet) processing events
void rehydrate(FlowLocator flowLocator,
FlowExecutionListenerLoader listenerLoader,
TransactionSynchronizer transactionSynchronizer)
flowLocator - the flow locatorlistenerLoader - the flow execution listener loader to use to obtain
all listeners that applytransactionSynchronizer - application transaction synchronization
strategy to useFlowExecutionListenerList getListeners()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||