The Cron component allows triggering events at specific time intervals.
URI Syntax: cron:name
Path parameters
Name | Description | Default | Type |
|---|---|---|---|
name (consumer) | (required) Name of the cron trigger | — | String |
Query parameters
Name | Description | Default | Type |
|---|---|---|---|
| schedule (consumer) | The cron expression that will start the integration execution | — | String |
The snippet below configures a cron trigger to fire every 10 seconds.
Then, the message "Integration triggered" is logged.


A cron expression is a string consisting of 6 or 7 whitespace-separated fields. Fields can contain any allowed values, along with various combinations of the allowed special characters for that field. The fields are as follows:
Field name | Required | Allowed values | Allowed special characters |
|---|---|---|---|
| Seconds | YES | 0-59 | , - * / |
| Minutes | YES | 0-59 | , - * / |
| Hours | YES | 0-23 | , - * / |
| Day of month | YES | 1-31 | , - * ? / L W |
| Month | YES | 1-12 or JAN-DEC | , - * / |
| Day of week | YES | 1-7 or SUN-SAT | , - * ? / L # |
| Year | NO | empty, 1970-2099 | , - * / |
Meaning of main special characters
Special character | Meaning |
|---|---|
| * | All values in the field. |
| ? | No specific value (used in "day of month" and "day of week" fields). Useful when you need to specify something in one of the two fields where the character is allowed, but not in the other. For example, if I want my trigger to fire on a specific day of the month (say, on the 10th), but don't care what day of the week that happens to be, I would put "10" in the day of month field and "?" in the day of week field. |
| - | Range of values (all values included in the range). |
| , | List separator for values (only specified values). |
| / | Incremental values. For example, "0/15" in the seconds field means "at seconds 0, 15, 30, and 45". |
Examples
Cron expression | Meaning |
|---|---|
| 0 0 12 * * ? | Fires at 12 PM (noon) every day |
| 0 15 10 * * ? 2005 | Fires at 10:15 AM every day during the year 2005. |
| 0 15 10 15 * ? | Fires at 10:15 AM on the 15th day of every month. |
For more information and examples, visit: Cron Trigger Tutorial.
Also check out Cron Expression Generator (Quartz).
IMPORTANTSupport for specifying both "day of week" and "day of month" simultaneously is not complete. Currently, you must use the '?' character in one of these fields.
We use cookies to enhance your experience on our site. By continuing to browse, you agree to our use of cookies.Learn more