Skip to main content

Introducing Formengine - The New Formbuilder, try for FREE formengine.io.

Interface ITimerBuilder

Represents a builder for configuring a timer definition.

Inherited Members

IProcessDefinitionBuilder.CreateActor(string, string)

IProcessDefinitionBuilder.CreateOrUpdateActor(string, string)

IProcessDefinitionBuilder.UpdateActor(string)

IProcessDefinitionBuilder.DeleteActor(string)

IProcessDefinitionBuilder.CreateParameter(string, Type, ParameterPurpose)

IProcessDefinitionBuilder.CreateOrUpdateParameter(string, Type, ParameterPurpose)

IProcessDefinitionBuilder.UpdateParameter(string)

IProcessDefinitionBuilder.DeleteParameter(string)

IProcessDefinitionBuilder.CreateCommand(string)

IProcessDefinitionBuilder.CreateOrUpdateCommand(string)

IProcessDefinitionBuilder.UpdateCommand(string)

IProcessDefinitionBuilder.DeleteCommand(string)

IProcessDefinitionBuilder.CreateTimer(string)

IProcessDefinitionBuilder.CreateOrUpdateTimer(string)

IProcessDefinitionBuilder.UpdateTimer(string)

IProcessDefinitionBuilder.DeleteTimer(string)

IProcessDefinitionBuilder.CreateActivity(string)

IProcessDefinitionBuilder.AddActivity(ActivityDefinition)

IProcessDefinitionBuilder.CreateInlineActivity(string, string)

IProcessDefinitionBuilder.CreateOrUpdateActivity(string)

IProcessDefinitionBuilder.CreateOrUpdateInlineActivity(string, string)

IProcessDefinitionBuilder.UpdateActivity(string)

IProcessDefinitionBuilder.UpdateInlineActivity(string)

IProcessDefinitionBuilder.UpdateActivity(ActivityDefinition)

IProcessDefinitionBuilder.UpdateInlineActivity(ActivityDefinition)

IProcessDefinitionBuilder.DeleteActivity(string)

IProcessDefinitionBuilder.DeleteActivity(ActivityDefinition)

IProcessDefinitionBuilder.CreateTransition(string, ActivityDefinition, ActivityDefinition)

IProcessDefinitionBuilder.CreateOrUpdateTransition(string, ActivityDefinition, ActivityDefinition)

IProcessDefinitionBuilder.UpdateTransition(string)

IProcessDefinitionBuilder.UpdateTransition(TransitionDefinition)

IProcessDefinitionBuilder.DeleteTransition(string)

IProcessDefinitionBuilder.DeleteTransition(TransitionDefinition)

IProcessDefinitionBuilder.ForEachActivity(Action<IActivityBuilder>)

IProcessDefinitionBuilder.ForEachTransition(Action<ITransitionBuilder>)

IProcessDefinitionBuilder.Inlined()

IProcessDefinitionBuilder.NotInlined()

IProcessDefinitionBuilder.GetActivity(string, out ActivityDefinition)

IProcessDefinitionBuilder.GetTransition(string, out TransitionDefinition)

IProcessDefinitionBuilder.ProcessDefinition

Namespace: OptimaJet.Workflow.Core.Model.Builder

Assembly: OptimaJet.Workflow.Core.dll

Syntax
public interface ITimerBuilder : IProcessDefinitionBuilder

Methods

Ref(out TimerDefinition)

Sets the reference to the current TimerDefinition for further configuration.

Declaration
ITimerBuilder Ref(out TimerDefinition timerDefinition)
Parameters
TypeNameDescription
TimerDefinitiontimerDefinitionThe variable that will hold the current <xref href="OptimaJet.Workflow.Core.Model.TimerDefinition" data-throw-if-not-resolved="false"></xref>.
Returns
TypeDescription
ITimerBuilderReturns the current <xref href="OptimaJet.Workflow.Core.Model.Builder.ITimerBuilder" data-throw-if-not-resolved="false"></xref> instance for chaining method calls.

Name(string)

Sets the name of the timer.

Declaration
ITimerBuilder Name(string name)
Parameters
TypeNameDescription
stringnameThe name of the timer.
Returns
TypeDescription
ITimerBuilderReturns the current <xref href="OptimaJet.Workflow.Core.Model.Builder.ITimerBuilder" data-throw-if-not-resolved="false"></xref> instance for chaining method calls.

Interval(int)

Sets the interval in seconds for the timer.

Declaration
ITimerBuilder Interval(int interval)
Parameters
TypeNameDescription
intintervalThe interval in seconds.
Returns
TypeDescription
ITimerBuilderReturns the current <xref href="OptimaJet.Workflow.Core.Model.Builder.ITimerBuilder" data-throw-if-not-resolved="false"></xref> instance for chaining method calls.

Interval(TimeSpan)

Sets the interval using a System.TimeSpan.

Declaration
ITimerBuilder Interval(TimeSpan interval)
Parameters
TypeNameDescription
TimeSpanintervalThe interval as a <xref href="System.TimeSpan" data-throw-if-not-resolved="false"></xref>.
Returns
TypeDescription
ITimerBuilderReturns the current <xref href="OptimaJet.Workflow.Core.Model.Builder.ITimerBuilder" data-throw-if-not-resolved="false"></xref> instance for chaining method calls.

DateTime(DateTime)

Sets the specific date and time when the timer should trigger.

Declaration
ITimerBuilder DateTime(DateTime dateTime)
Parameters
TypeNameDescription
DateTimedateTimeThe date and time to trigger the timer.
Returns
TypeDescription
ITimerBuilderReturns the current <xref href="OptimaJet.Workflow.Core.Model.Builder.ITimerBuilder" data-throw-if-not-resolved="false"></xref> instance for chaining method calls.

Date(DateTime)

Sets the specific date when the timer should trigger.

Declaration
ITimerBuilder Date(DateTime date)
Parameters
TypeNameDescription
DateTimedateThe date to trigger the timer.
Returns
TypeDescription
ITimerBuilderReturns the current <xref href="OptimaJet.Workflow.Core.Model.Builder.ITimerBuilder" data-throw-if-not-resolved="false"></xref> instance for chaining method calls.

Time(DateTime)

Sets the specific time when the timer should trigger.

Declaration
ITimerBuilder Time(DateTime time)
Parameters
TypeNameDescription
DateTimetimeThe time to trigger the timer.
Returns
TypeDescription
ITimerBuilderReturns the current <xref href="OptimaJet.Workflow.Core.Model.Builder.ITimerBuilder" data-throw-if-not-resolved="false"></xref> instance for chaining method calls.

Expression(string)

Sets an expression to define when the timer should trigger.

Declaration
ITimerBuilder Expression(string expression)
Parameters
TypeNameDescription
stringexpressionThe expression determining the trigger time.
Returns
TypeDescription
ITimerBuilderReturns the current <xref href="OptimaJet.Workflow.Core.Model.Builder.ITimerBuilder" data-throw-if-not-resolved="false"></xref> instance for chaining method calls.

Overridable()

Allows the timer to be overridden if it already exists.

Declaration
ITimerBuilder Overridable()
Returns
TypeDescription
ITimerBuilderReturns the current <xref href="OptimaJet.Workflow.Core.Model.Builder.ITimerBuilder" data-throw-if-not-resolved="false"></xref> instance for chaining method calls.

NotOverridable()

Prevents the timer from being overridden if it already exists.

Declaration
ITimerBuilder NotOverridable()
Returns
TypeDescription
ITimerBuilderReturns the current <xref href="OptimaJet.Workflow.Core.Model.Builder.ITimerBuilder" data-throw-if-not-resolved="false"></xref> instance for chaining method calls.

Extension Methods