---
title: t Cron
description: Available triggers
documentId: ipaas-cron-trigger
locale: en-US
---

The [**Cron**](https://camel.apache.org/components/4.8.x/cron-component.html) component allows triggering events at specific time intervals.

**URI Syntax**: `cron:name`

## Main fields

*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 |

## Example

<Steps>
    <Step>
 The snippet below configures a cron trigger to fire every 10 seconds. 
    </Step>
    <Step>
    Then, the message "Integration triggered" is logged.
    </Step>
</Steps>


```yaml
- from:
        uri: cron:my-cron-expression
        parameters:
            schedule: 0/10 * * * * ?
        steps:
            - log:
                    message: integration triggered
```

![](https://creative-ball-51b3fc85c0.media.strapiapp.com/cron_trigger_26f379c336.png)


### Result

![](https://creative-ball-51b3fc85c0.media.strapiapp.com/cron_trigger_result_d105572eb3.png)

## Cron Expression

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**](https://www.quartz-scheduler.org/documentation/quartz-2.3.0/tutorials/crontrigger.html).

Also check out [**Cron Expression Generator (Quartz)**](https://www.freeformatter.com/cron-expression-generator-quartz.html).

<Callout type="important" title="IMPORTANT">
Support 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.
</Callout>
