Click or drag to resize
IWorkflowInstanceStateManager Interface
This manager would manage the storing and loading a long running workflow into a durable storage

Namespace: FlexRule.Flows.Workflows.Managers.InstanceStore
Assembly: FlexRule.Flows.Workflow (in FlexRule.Flows.Workflow.dll) Version: 0.0.0.0 (0.0.0.0)
Syntax
C#
public interface IWorkflowInstanceStateManager

The IWorkflowInstanceStateManager type exposes the following members.

Methods
  NameDescription
Public methodList
Lists all the stored processes
Public methodList(IEnumerableGuid)
Lists all the stored processes that have any of the provided identifiers
Public methodList(IEnumerableFlowState)
Lists all the stored processes that have any of the provided states
Public methodList(ConditionsBuilder, IDictionaryString, Object)
Lists all the stored processes that matches the condition
Public methodLoadContext
Loads context using the provided
Public methodLoadStateInfo
Loads information related to a stored context
Public methodResolveAddress
This creates an address if does not exist otherwise returns the address identifier
Public methodStore
Stores the workflow`s context into a durable storage
Remarks
When new instance is provided, stores it, otherwise, update the existing one.
Top
Extension Methods
Remarks
Dehydration and Hydration of a running workflow is required as it takes long time to process and usually it may involve different parties or actors to take action and process different part of the workflow. In order to persist and reload the running workflow (process) into and from a durable storage this interface is used. This behaviour allows the running workflow when reaches a ReceiverNode that is part of ListenerSplitNode be stored into a storage. Also when a WorkflowEngine using a WorkflowEventsManager picks that stored process to be resumed, it loads the WorkflowExecutionContext and continues the execution from the last point it went to hydration.
See Also