Assembly: OptimaJet.Workflow.Core

Interface IParsedProcessCache

OptimaJet.Workflow.Core.Cache.IParsedProcessCache

Provides access to a cache of parsed ProcessDefinition instances keyed by scheme identifier.

public interface IParsedProcessCache

Type Hierarchy

Methods

void Clear() #
Clears all cached process definitions.
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.
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.
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.