The Scheduler component allows you to schedule actions on certain intervals or times.
When using the scheduler component, it must always be the first component in a flow. You can use the scheduler in two different ways; as a cron trigger or a simple trigger. You can use a simple trigger, a cron trigger, or both.
The Scheduler component has the following configuration options:
|Indicates the time zone used by the cron, it's default is Europe/Amsterdam|
|Specify a quartz cron|
|For a simple trigger indicate how many times you want trigger to run, indefinitely = -1|
|Indicate the interval between actions for a simple trigger in milliseconds|
There is also a
Verify Cron expression button, that checks if the flow can run your cron expression.
With the cron trigger you can specify to trigger an action on defined and scheduled intervals like e.g. every 5 min (
0 0/5 * * * ?) or more complex intervals like every Wednesday and Friday at 10:30, 11:30, 12:30 and 13:30 ('0 30 10-13 ? * WED,FRI').
For more information on Quartz Cron Trigger you can look at the Cron Trigger website.
To create cron expressions, you can always use the Cronmaker website. Is allows you to easily generate you expression.
The simple trigger is much simpler. You only have to indicate how many times you want the trigger to take place (the
repeat count) e.g. 1, 10, 100 but you can also run it indefinitely with -1.
Once you specified how many times you want to run it, you have the specify the interval in milliseconds (the
repeat interval) e.g. 500 (each 0.5 secs) or 5000 (each 5 secs).