Assembly: OptimaJet.Workflow.Core

Class TimerDefinition

OptimaJet.Workflow.Core.Model.TimerDefinition

Defines a named timer schedule used by timer-triggered transitions in a process scheme and specifies through TimerDefinition.NotOverrideIfExists whether registration replaces an existing process timer with the same timer name.

public sealed class TimerDefinition : BaseDefinition

Type Hierarchy

Properties

[JsonConverter(typeof(StringEnumConverter))] [JsonConverter(typeof(SystemStringEnumConverter<TimerType>))] public TimerType Type { get; set; } #
Gets or sets the TimerType that determines how TimerDefinition.Value is interpreted to calculate the timer's execution time.
public string Value { get; set; } #
Gets or sets the schedule value that TimerDefinition.Type interprets to calculate the timer's execution time.
public bool NotOverrideIfExists { get; set; } #
Gets or sets a value indicating whether registration preserves an existing process timer with the same timer name.

Methods

public TimerDefinition Clone() #
Creates a copy of the current TimerDefinition.

Returns

Type
Description
TimerDefinition
A TimerDefinition with the same timer configuration as the current instance.

Exceptions

Type
Description
NullReferenceException

Remarks

The copied timer has independent BaseDefinition.DesignerSettings.