TimerTriggerNode class
Beep.Skia (core) — class
Automation node that triggers workflow execution on a scheduled timer basis. Supports various timing patterns including intervals, cron expressions, and one-time execution.
Members
| Member | Kind | Description |
|---|---|---|
TimerTriggerNode() | Method | Initializes a new instance of the TimerTriggerNode class. |
event EventHandler<TimerTriggeredEventArgs> TimerTriggered | Event | Event raised when the timer triggers workflow execution. |
TimerTriggerMode TriggerType | Property | Gets or sets the type of timer trigger (Interval, Cron, OneTime). |
TimeSpan Interval | Property | Gets or sets the interval for interval-based triggers. |
string CronExpression | Property | Gets or sets the cron expression for cron-based triggers. |
DateTime? StartTime | Property | Gets or sets the start time for the trigger schedule. |
DateTime? EndTime | Property | Gets or sets the end time for the trigger schedule. |
bool IsTimerEnabled | Property | Gets or sets whether the timer trigger is enabled. |
int MaxExecutions | Property | Gets or sets the maximum number of executions (-1 for unlimited). |
int ExecutionCount | Property | Gets the current execution count. |
DateTime LastExecution | Property | Gets the time of the last execution. |
DateTime NextExecution | Property | Gets the time of the next scheduled execution. |
bool IsRunning | Property | Gets whether the timer is currently running. |
override string Description | Property | Gets the description of what this automation node does. |
override NodeType NodeType | Property | Gets the type of this automation node. |
override Task<bool> InitializeAsync(Dictionary<string, object> configuration, CancellationToken cancellationToken = default) | Method | Initializes 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) | Method | Validates 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) | Method | Executes 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() | Method | Gets 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() | Method | Gets the schema defining the output parameters this node produces. A dictionary describing the output schema. |
void StartTimer() | Method | Starts the timer based on the current configuration. |
void StopTimer() | Method | Stops the timer. |