Skip to main content

Class DefaultParcedProcessCache

Default cache IParsedProcessCache for parced processes ProcessDefinition

Inheritance

↳ object

    DefaultParcedProcessCache

Implements

IParsedProcessCache

Inherited Members

Equals(object)

Equals(object, object)

GetHashCode()

GetType()

ReferenceEquals(object, object)

ToString()

Namespace: OptimaJet.Workflow.Core.Cache

Assembly: OptimaJet.Workflow.Core.dll

Syntax
public sealed class DefaultParcedProcessCache : IParsedProcessCache

Methods

Clear()

Clear the cache

Declaration
public void Clear()

RemoveProcessDefinition(Guid)

Declaration
public bool RemoveProcessDefinition(Guid schemeId)
Parameters
TypeNameDescription
GuidschemeId
Returns
TypeDescription
bool

GetProcessDefinitionBySchemeId(Guid)

Returns process definition from the cache by scheme id, if process definition is not exists in the cache returns null

Declaration
public ProcessDefinition GetProcessDefinitionBySchemeId(Guid schemeId)
Parameters
TypeNameDescription
GuidschemeIdId of the scheme
Returns
TypeDescription
ProcessDefinitionProcessDefinition object

AddProcessDefinition(Guid, ProcessDefinition)

Adds process definition to the cache with scheme id as the key

Declaration
public void AddProcessDefinition(Guid schemeId, ProcessDefinition processDefinition)
Parameters
TypeNameDescription
GuidschemeIdId of the scheme
ProcessDefinitionprocessDefinitionProcessDefinition object

Extension Methods