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.
Namespace: OptimaJet.Workflow.Core.Model
public sealed class TimerDefinition : BaseDefinitionType Hierarchy
- BaseDefinition
- TimerDefinition Current type
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
TimerDefinitionA TimerDefinition with the same timer configuration as the current instance.
Exceptions
Type
Description
NullReferenceExceptionThe value of BaseDefinition.DesignerSettings is null.
Remarks
The copied timer has independent BaseDefinition.DesignerSettings.