public interface FlowExecutionSnapshotFactory
FlowExecutionSnapshot implementations.| Modifier and Type | Method and Description |
|---|---|
FlowExecutionSnapshot |
createSnapshot(FlowExecution flowExecution)
Takes a snapshot of the flow execution.
|
FlowExecution |
restoreExecution(FlowExecutionSnapshot snapshot,
java.lang.String flowId,
FlowExecutionKey key,
MutableAttributeMap<java.lang.Object> conversationScope,
FlowExecutionKeyFactory keyFactory)
Restores a flow execution from a previously taken snapshot.
|
FlowExecutionSnapshot createSnapshot(FlowExecution flowExecution) throws SnapshotCreationException
flowExecution - the flow executionSnapshotCreationException - if the snapshot could not be createdFlowExecution restoreExecution(FlowExecutionSnapshot snapshot, java.lang.String flowId, FlowExecutionKey key, MutableAttributeMap<java.lang.Object> conversationScope, FlowExecutionKeyFactory keyFactory) throws FlowExecutionRestorationFailureException
snapshot - the previously taken snapshotflowId - the id of the root flow definitionkey - the flow execution keyconversationScope - conversation scopekeyFactory - factory for creating new snapshot keysFlowExecutionRestorationFailureException - if flow execution restoration fails