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|
Launch a new execution of the flow with the provided id.
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)
FlowExecutionResult resumeExecution(java.lang.String flowExecutionKey, ExternalContext context) throws FlowException
flowExecutionKey- the key of a paused execution of the flow definition
context- access to the calling environment