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
flow execution.
FlowExecution
,
FlowDefinition
,
FlowExecutionListener
Modifier and Type | Method and Description |
---|---|
FlowExecution |
createFlowExecution(FlowDefinition flowDefinition)
Create a new flow execution product for the given flow definition.
|
FlowExecution |
restoreFlowExecution(FlowExecution flowExecution,
FlowDefinition flowDefinition,
FlowExecutionKey flowExecutionKey,
MutableAttributeMap<java.lang.Object> conversationScope,
FlowDefinitionLocator subflowDefinitionLocator)
Restore the transient state of the flow execution.
|
FlowExecution createFlowExecution(FlowDefinition flowDefinition)
flowDefinition
- the flow definitionFlowExecution restoreFlowExecution(FlowExecution flowExecution, FlowDefinition flowDefinition, FlowExecutionKey flowExecutionKey, MutableAttributeMap<java.lang.Object> conversationScope, FlowDefinitionLocator subflowDefinitionLocator)
flowExecution
- the flow execution, newly deserialized and needing restorationflowDefinition
- the root flow definition for the execution, typically not part of the serialized formflowExecutionKey
- the flow execution key, typically not part of the serialized formconversationScope
- 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
conversationsubflowDefinitionLocator
- for locating the definitions of any subflows started by the execution