public interface FlowExecutionFactory
This factory provides encapsulation of the flow execution implementation type, as well as its construction and assembly process.
Flow execution factories are responsible for registering
listeners with the constructed
|Modifier and Type||Method and Description|
Create a new flow execution product for the given flow definition.
Restore the transient state of the flow execution.
FlowExecution createFlowExecution(FlowDefinition flowDefinition)
flowDefinition- the flow definition
FlowExecution restoreFlowExecution(FlowExecution flowExecution, FlowDefinition flowDefinition, FlowExecutionKey flowExecutionKey, MutableAttributeMap<java.lang.Object> conversationScope, FlowDefinitionLocator subflowDefinitionLocator)
flowExecution- the flow execution, newly deserialized and needing restoration
flowDefinition- the root flow definition for the execution, typically not part of the serialized form
flowExecutionKey- the flow execution key, typically not part of the serialized form
conversationScope- the execution's conversation scope, which is typically not part of the serialized form since it could be shared by multiple physical flow execution copies all sharing the same logical conversation
subflowDefinitionLocator- for locating the definitions of any subflows started by the execution