Skip to content

Create a Scheduled trigger (Task)

Follow the instructions below to create a Scheduled trigger in the WSO2 Integrator: MI for Visual Studio Code (MI for VS Code) extension.

Create a Scheduled trigger artifact

  1. Launch Visual Studio Code with the WSO2 Integrator: MI for VS Code extension (MI for VS Code) installed.

    Info

    Follow the Install WSO2 Integrator: MI for VS Code documentation for a complete installation guide.

  2. Create an integration project.

    Hereafter, this project will be referred to as <PROJECT_NAME>.

  3. To add a new Scheduled trigger, navigate to WSO2 Integrator: MI Project Explorer.

  4. Click on the + icon to open the Add Artifact pane.

    add artifact

  5. On the Add artifact pane, click Automation under Create an Integration to open the Task Form.

  6. Specify values for the required parameters for the Scheduled trigger.

    create new Scheduled trigger

The created Scheduled trigger will be available in Project Overview under Automation.

Info

You can switch to the default Visual Studio Code Explorer to view the folder structure.

The newly-created task will be stored in the <PROJECT_NAME>/src/main/wso2mi/artifacts/tasks folder of your integration project.

Update configurations

You can later update the task configurations to specify the incoming message that should trigger the task and the destination where the message should be injected.

  1. Go to MI Project Explorer.

  2. Under Automation, select the task you want to edit.

  3. This will open the Task View.

  4. Click the pen icon next to the task name.

    create new Scheduled trigger

  5. Update task configurations.

  6. Click Update.

Info

See the Scheduled triggers Property Catalog documentation for a list of all available configurations for tasks.

Tutorials

Follow our tutorial on Scheduled triggers:

Examples

Follow our examples on Scheduled triggers: