public class SimpleFlowExecutionSnapshotFactory extends java.lang.Object implements FlowExecutionSnapshotFactory
flow executioninstance. Note: this class is generally only suitable for use with a repository that has maxSnapshots set to 1, since no actual copies of the execution data are made by this factory. This class exists to support the use case where taking copies of flow execution state is not needed.
|Constructor and Description|
Creates a new simple flow execution snapshot factory
|Modifier and Type||Method and Description|
Takes a snapshot of the flow execution.
Restores a flow execution from a previously taken snapshot.
public SimpleFlowExecutionSnapshotFactory(FlowExecutionFactory flowExecutionFactory, FlowDefinitionLocator flowDefinitionLocator)
flowDefinitionLocator- the flow definition locator
flowExecutionFactory- the flow execution factory
public FlowExecutionSnapshot createSnapshot(FlowExecution flowExecution) throws SnapshotCreationException
public FlowExecution restoreExecution(FlowExecutionSnapshot snapshot, java.lang.String flowId, FlowExecutionKey key, MutableAttributeMap<java.lang.Object> conversationScope, FlowExecutionKeyFactory keyFactory) throws FlowExecutionRestorationFailureException
snapshot- the previously taken snapshot
flowId- the id of the root flow definition
key- the flow execution key
conversationScope- conversation scope
keyFactory- factory for creating new snapshot keys
FlowExecutionRestorationFailureException- if flow execution restoration fails