Red Hat Training

A Red Hat training course is available for Red Hat Fuse

Chapter 20. Trigger integration execution with a timer

To trigger execution of an integration according to a schedule that you specify, add a timer connection as an integration’s start connection. Fuse Online provides a timer connection, which you can use to start as many integrations as you like. You do not need to create a timer connection unless you inadvertently delete the provided timer connection. Details are in the following topics:

20.1. Add a timer connection to trigger integration execution

To trigger execution of an integration according to a schedule that you specify, add a timer connection as an integration’s start connection. A timer connection cannot be in the middle of an integration or at the end of an integration.

Procedure

  1. In Fuse Online, on the left, click Integrations.
  2. In the upper right, click Create Integration.
  3. On the Choose a Start Connection page, click the Timer connection.

    Fuse Online provides a Timer connection; you do not need to create a timer connection. However, if you inadvertently deleted the provided Timer connection and created a new timer connection then you might have given it a different name.

  4. On the Choose an Action page, click Cron Timer or Simple Timer.

    • A cron timer requires a cron expression that specifies the schedule for when to trigger integration execution.
    • A simple timer prompts you to specify a period and its time unit, for example, 5 seconds, 1 hour. Available units are milliseconds, seconds, minutes, hours, days.
  5. According the type of timer you are adding, enter a cron expression or a period with a selected time unit.
  6. Click Done to add the Timer connection as the integration’s start connection.

20.2. Create a replacement timer connection

Fuse Online provides a timer connection; you do not need to create one. However, if you inadvertently delete the provided timer connection then you can use the Timer connector to create a timer connection.

Procedure

  1. In Fuse Online, in the left panel, click Connections.
  2. In the upper right, click Create Connection.
  3. Click the Timer connector.
  4. In the Add Connection Details page, enter a name for the connection, for example, Timer.
  5. Optionally, enter a description that distinguishes this connection.
  6. In the upper right, click Create. Fuse Online displays a list of available connections and you can see the timer connection that you just created.