Class NoPersistenceStorageProvider
A in memory storage provider, used if no storage is used
Inheritance
System.Object
NoPersistenceStorageProvider
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.WorkflowFoundation.StorageProviders
Assembly: EPiServer.WorkflowFoundation.dll
Version: 8.11.0Syntax
public class NoPersistenceStorageProvider : IStorageProvider
Constructors
NoPersistenceStorageProvider()
Declaration
public NoPersistenceStorageProvider()
Methods
AddDefinition(WorkflowDefinition)
No operation
Declaration
public virtual void AddDefinition(WorkflowDefinition definition)
Parameters
Type | Name | Description |
---|---|---|
WorkflowDefinition | definition | definition |
AddInstance(WorkflowDefinitionInstance)
No operation
Declaration
public virtual void AddInstance(WorkflowDefinitionInstance instance)
Parameters
Type | Name | Description |
---|---|---|
WorkflowDefinitionInstance | instance | instance |
GetWaitingInstances(String)
Gets the instances currently waiting for a specific event
Declaration
public virtual IList<Guid> GetWaitingInstances(string eventName)
Parameters
Type | Name | Description |
---|---|---|
System.String | eventName | Name of the event. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IList<System.Guid> | List of instances that waits for event |
LoadDefinition(Guid)
no operation
Declaration
public virtual WorkflowDefinition LoadDefinition(Guid definitionId)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | definitionId | id |
Returns
Type | Description |
---|---|
WorkflowDefinition |
Remarks
Always throws exception
Exceptions
Type | Condition |
---|---|
WorkflowDefinitionException |
LoadDefinitions()
no operation
Declaration
public virtual IList<WorkflowDefinition> LoadDefinitions()
Returns
Type | Description |
---|---|
System.Collections.Generic.IList<WorkflowDefinition> | empty list |
LoadInstance(Guid)
No operation
Declaration
public virtual WorkflowDefinitionInstance LoadInstance(Guid instanceId)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | instanceId | instance id |
Returns
Type | Description |
---|---|
WorkflowDefinitionInstance | instance |
Remarks
Always throws exception
Exceptions
Type | Condition |
---|---|
WorkflowInstanceException |
LoadInstances()
No operation
Declaration
public virtual IList<WorkflowDefinitionInstance> LoadInstances()
Returns
Type | Description |
---|---|
System.Collections.Generic.IList<WorkflowDefinitionInstance> | Empty list |
RegisterWaitingInstance(Guid, String)
Registers that a instance is waiting for an event
Declaration
public virtual void RegisterWaitingInstance(Guid instanceId, string eventName)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | instanceId | The instance id. |
System.String | eventName | Name of the event. |
RemoveDefinition(WorkflowDefinition)
no operation
Declaration
public virtual void RemoveDefinition(WorkflowDefinition definition)
Parameters
Type | Name | Description |
---|---|---|
WorkflowDefinition | definition | defintion |
RemoveInstance(Guid)
No operation
Declaration
public virtual void RemoveInstance(Guid instanceId)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | instanceId | The id of the instance to remove |
Exceptions
Type | Condition |
---|---|
WorkflowInstanceException | instance not found in storage |
UnregisterInstance(Guid)
Unregisters the instance for all events.
Declaration
public virtual void UnregisterInstance(Guid instanceId)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | instanceId | The instance id. |
UnregisterWaitingInstance(Guid, String)
Unregister that a instance is waiting for an event
Declaration
public virtual void UnregisterWaitingInstance(Guid instanceId, string eventName)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | instanceId | The instance id. |
System.String | eventName | Name of the event. |
UpdateDefinition(WorkflowDefinition)
no operation
Declaration
public virtual void UpdateDefinition(WorkflowDefinition definition)
Parameters
Type | Name | Description |
---|---|---|
WorkflowDefinition | definition | definition |
UpdateInstance(WorkflowDefinitionInstance)
No operation
Declaration
public virtual void UpdateInstance(WorkflowDefinitionInstance instance)
Parameters
Type | Name | Description |
---|---|---|
WorkflowDefinitionInstance | instance | instance |