Assembly: OptimaJet.Workflow.Core

Class DefaultParcedProcessCache

OptimaJet.Workflow.Core.Cache.DefaultParcedProcessCache

Default in-memory implementation of IParsedProcessCache for parsed ProcessDefinition objects.

public sealed class DefaultParcedProcessCache : IParsedProcessCache

Type Hierarchy

Methods

public void Clear() #
Clears all cached process definitions.
public bool RemoveProcessDefinition(Guid schemeId) #
Removes a cached process definition by scheme identifier.

Parameters

Name
Type
Description
schemeId
Guid
The identifier of the scheme whose cached process definition should be removed.

Returns

Type
Description
Boolean
true when a cached process definition was removed; otherwise, false.
public ProcessDefinition GetProcessDefinitionBySchemeId(Guid schemeId) #
Gets a cached process definition by scheme identifier.

Parameters

Name
Type
Description
schemeId
Guid
The identifier of the scheme for which to retrieve a process definition.

Returns

Type
Description
ProcessDefinition
The cached process definition if one exists for schemeId; otherwise, null.
public void AddProcessDefinition(Guid schemeId, ProcessDefinition processDefinition) #
Adds or updates a process definition in the cache using the scheme identifier as key.

Parameters

Name
Type
Description
schemeId
Guid
The identifier of the scheme.
processDefinition
ProcessDefinition
The ProcessDefinition to store in the cache.

Exceptions

Type
Description
LicenseException
Thrown when adding the definition would exceed the license limit for the number of unique scheme names.