public interface FlowExecutor
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.
| Modifier and Type | Method and Description |
|---|---|
FlowExecutionResult |
launchExecution(java.lang.String flowId,
MutableAttributeMap<?> input,
ExternalContext context)
Launch a new execution of the flow with the provided id.
|
FlowExecutionResult |
resumeExecution(java.lang.String flowExecutionKey,
ExternalContext context)
Resume the flow execution with the provided execution key.
|
FlowExecutionResult launchExecution(java.lang.String flowId, MutableAttributeMap<?> input, ExternalContext context) throws FlowException
flowId - the flow definition identifier; should be unique among all top-level flow definitions (required).input - input to pass to the new execution on startup (optional)context - access to the calling environment (required)FlowExceptionFlowExecutionResult resumeExecution(java.lang.String flowExecutionKey, ExternalContext context) throws FlowException
flowExecutionKey - the key of a paused execution of the flow definitioncontext - access to the calling environmentFlowException