This site contains the documentation that is relevant to older WSO2 product versions and offerings.
For the latest WSO2 documentation, visit https://wso2.com/documentation/.

Working with Scheduled Tasks

A scheduled task allows you to run a piece of code triggered by a timer. The ESB profile of WSO2 EI provides a default scheduled task implementation, which you can use to inject a message to the ESB profile at a scheduled interval. To activate the built-in task, you have to add it to the Tasks list.

For information on working with scheduled tasks via tooling, see Scheduling Tasks via Tooling.

For information on working with scheduled tasks via the Management Console, see Scheduling Tasks using the Management Console.

You can also write your own scheduled task by creating a custom Java class that implements the org.apache.synapse.startup.Task interface. This interface defines a single method named execute(). For example, you could create a task that will read a text file at a specified location and place orders for stocks that are given in the text file. For more information, see Writing Tasks.