Assembly: OptimaJet.Workflow.Core

Interface ITimerManager

OptimaJet.Workflow.Core.Runtime.ITimerManager

Defines services for initializing and managing workflow timers at runtime.

public interface ITimerManager

Properties

bool IsSupportsMultiServer { get; } #
Gets a value indicating whether this timer manager can be used in multi-server runtime deployments.

Methods

void Init(WorkflowRuntime runtime) #
Initializes the timer manager for the specified workflow runtime.

Parameters

Name
Type
Description
runtime
WorkflowRuntime
The WorkflowRuntime that owns the managed timers.
Task StartAsync() #
Starts timer processing for the configured runtime.

Returns

Type
Description
Task
A task that represents the asynchronous start operation.
Task StopAsync() #
Stops timer processing for the configured runtime.

Returns

Type
Description
Task
A task that represents the asynchronous stop operation.
Task ClearAndRegisterTimersAsync(ProcessInstance processInstance) #
Clears currently registered timers and registers timers for the specified process instance.

Parameters

Name
Type
Description
processInstance
ProcessInstance
The process instance for which timers should be removed and (re)registered.

Returns

Type
Description
Task
A task that represents the asynchronous operation.