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¶
-
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.
-
Create an integration project.
Hereafter, this project will be referred to as
<PROJECT_NAME>
. -
Go to Micro Integrator Project Explorer > Tasks.
-
Hover over Tasks and click the + icon that appears.
This will open the below Task Form.
-
Specify values for the required parameters for the 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.
-
Go to MI Overview.
-
Under Tasks, select the task you want to edit.
-
This will open the Task View.
-
Click the pen icon next to the task name.
-
Update task configurations.
-
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:
- Periodically execute an integration process using a scheduled task