Skip to content

Create a Scheduled Task

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

Create a scheduled task artifact

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

    Info

    Follow the Install Micro Integrator 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. Go to Micro Integrator Project Explorer > Tasks.

  4. Hover over Tasks and click the + icon that appears.

    This will open the below Task Form.

  5. Specify values for the required parameters for the scheduled task.

    create new scheduled task

The created scheduled task will be available in the MI Overview under Tasks.

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 Overview.

  2. Under Tasks, 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 task

  5. Update task configurations.

  6. Click Update.

Info

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

Learn more about scheduled tasks

Follow our examples on scheduled tasks:

Follow our tutorial on scheduled tasks: