Class DefaultParcedProcessCache
OptimaJet.Workflow.Core.Cache.DefaultParcedProcessCache
Default in-memory implementation of IParsedProcessCache for parsed ProcessDefinition objects.
Namespace: OptimaJet.Workflow.Core.Cache
public sealed class DefaultParcedProcessCache : IParsedProcessCacheType Hierarchy
- DefaultParcedProcessCache Current type
- Implemented interfaces
Methods
public void Clear() #Clears all cached process definitions.
public bool RemoveProcessDefinition(Guid schemeId) #Removes a cached process definition by scheme identifier.
public ProcessDefinition GetProcessDefinitionBySchemeId(Guid schemeId) #Gets a cached process definition by scheme identifier.
Parameters
Name
Type
Description
schemeIdGuidThe identifier of the scheme for which to retrieve a process definition.
Returns
Type
Description
ProcessDefinitionThe 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
schemeIdGuidThe identifier of the scheme.
Exceptions
Type
Description
LicenseExceptionThrown when adding the definition would exceed the license limit for the number of unique scheme names.