|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FlowExecutor
The central facade and entry-point service interface into the Spring Web Flow system for driving the executions of flow definitions. This interface defines a coarse-grained system boundary suitable for invocation by most clients.
Implementations of this interface abstract away much of the internal complexity of the web flow execution subsystem, which consists of launching and resuming managed flow executions from repositories.
Method Summary | |
---|---|
ResponseInstruction |
launch(java.lang.String flowDefinitionId,
ExternalContext context)
Launch a new execution of identified flow definition in the context of the current external client request. |
ResponseInstruction |
refresh(java.lang.String flowExecutionKey,
ExternalContext context)
Reissue the last response instruction issued by the flow execution. |
ResponseInstruction |
resume(java.lang.String flowExecutionKey,
java.lang.String eventId,
ExternalContext context)
Resume an existing, paused flow execution by signaling an event against its current state. |
Method Detail |
---|
ResponseInstruction launch(java.lang.String flowDefinitionId, ExternalContext context) throws FlowException
flowDefinitionId
- the unique id of the flow definition to launchcontext
- the external context representing the state of a request into Spring Web Flow from an external
system
FlowException
- if an exception occured launching the new flow executionResponseInstruction resume(java.lang.String flowExecutionKey, java.lang.String eventId, ExternalContext context) throws FlowException
flowExecutionKey
- the identifying key of a paused flow execution that is waiting to resume on the
occurrence of a user eventeventId
- the user event that occuredcontext
- the external context representing the state of a request into Spring Web Flow from an external
system
FlowException
- if an exception occured resuming the existing flow executionResponseInstruction refresh(java.lang.String flowExecutionKey, ExternalContext context) throws FlowException
flowExecutionKey
- the identifying key of a paused flow execution that is waiting to resume on the ocurrence
of a user eventcontext
- the external context representing the state of a request into Spring Web Flow from an external
system
FlowException
- if an exception occured retrieving the current response instruction
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |