Automation node that triggers workflow execution on a scheduled timer basis. Supports various timing patterns including intervals, cron expressions, and one-time execution.

Members

MemberKindDescription
TimerTriggerNode()MethodInitializes a new instance of the TimerTriggerNode class.
event EventHandler<TimerTriggeredEventArgs> TimerTriggeredEventEvent raised when the timer triggers workflow execution.
TimerTriggerMode TriggerTypePropertyGets or sets the type of timer trigger (Interval, Cron, OneTime).
TimeSpan IntervalPropertyGets or sets the interval for interval-based triggers.
string CronExpressionPropertyGets or sets the cron expression for cron-based triggers.
DateTime? StartTimePropertyGets or sets the start time for the trigger schedule.
DateTime? EndTimePropertyGets or sets the end time for the trigger schedule.
bool IsTimerEnabledPropertyGets or sets whether the timer trigger is enabled.
int MaxExecutionsPropertyGets or sets the maximum number of executions (-1 for unlimited).
int ExecutionCountPropertyGets the current execution count.
DateTime LastExecutionPropertyGets the time of the last execution.
DateTime NextExecutionPropertyGets the time of the next scheduled execution.
bool IsRunningPropertyGets whether the timer is currently running.
override string DescriptionPropertyGets the description of what this automation node does.
override NodeType NodeTypePropertyGets the type of this automation node.
override Task<bool> InitializeAsync(Dictionary<string, object> configuration, CancellationToken cancellationToken = default)MethodInitializes the timer trigger node with the specified configuration. The configuration parameters for the node. Token to cancel the initialization. A task representing the initialization operation.
override async Task<ValidationResult> ValidateAsync(Model.ExecutionContext inputData, CancellationToken cancellationToken = default)MethodValidates the current configuration for this timer trigger node. The input data to validate (not used for trigger nodes). Token to cancel the validation. A task containing the validation result.
override Task<NodeResult> ExecuteAsync(Model.ExecutionContext context, CancellationToken cancellationToken = default)MethodExecutes the timer trigger and returns trigger information. Note: This method is called by the timer, not directly by workflow execution. The execution context. Token to cancel the execution. A task containing the execution result.
override Dictionary<string, object> GetInputSchema()MethodGets the schema defining the input parameters this node expects. Trigger nodes typically don't require input data. A dictionary describing the input schema.
override Dictionary<string, object> GetOutputSchema()MethodGets the schema defining the output parameters this node produces. A dictionary describing the output schema.
void StartTimer()MethodStarts the timer based on the current configuration.
void StopTimer()MethodStops the timer.

Related