cron source Cron Source

Provided by: "Apache Software Foundation"

Support Level for this Kamelet is: "Stable"

Send events at specific time.

Configuration Options

The following table summarizes the configuration options available for the cron-source Kamelet:

Property Name Description Type Default Example

message

Message

Required The message to generate.

string

hello world

schedule

Cron Schedule

Required A cron expression that will be used to trigger events generation.

string

0/3 10 * * * ?

Dependencies

At runtime, the cron-source Kamelet relies upon the presence of the following dependencies:

  • camel:quartz

  • camel:core

  • camel:cron

  • camel:kamelet

Camel JBang usage

Prerequisites

  • You’ve installed JBang.

  • You have executed the following command:

jbang app install camel@apache/camel

Supposing you have a file named route.yaml with this content:

- route:
    from:
      uri: "kamelet:cron-source"
      parameters:
        .
        .
        .
      steps:
        - to:
            uri: "kamelet:log-sink"

You can now run it directly through the following command

camel run route.yaml