Deploy a WSO2 Integrator: MI project on Devant¶
WSO2 Integrator: MI is a 100% open source low-code integration solution with an AI-powered development experience. This guide will help you deploy a WSO2 Integrator: MI project on Devant.
Overview¶
In this guide, you will:
- Create a simple automation that prints
"Hello World"every day. - Use WSO2 Integrator: MI to develop the automation.
- Push the automation to Devant from the WSO2 Integrator: MI, which automatically builds the automation.
- Schedule the automation to run every day.
Prerequisites¶
- GitHub account: Create a GitHub account if you don't have one already.
- If signing in to Devant for the first time, create an organization to begin with.
- VS Code: Install VS Code if you don't have it installed already.
Step 1: Create the new integration¶
- Import a new repository to begin your integration. Refer Import a Repository for more details.
- Select the Technology as
WSO2 Integrator: MI. - Choose the Integration Type as
Automationand click Create.
This redirects you to the Create New Integration in VS Code page.
Step 2: Install the WSO2 Integrator: MI extension and open the integration¶
-
Install WSO2 Integrator: MI extension. Refer Install and Set Up WSO2 Integrator: MI for more details.
Note
If you don't have the required Java version and Micro Integrator Runtime installed, the extension will prompt you to install them. The extension will automatically install the required dependencies once you accept the installation.
-
Click Develop in WSO2 Integrator: MI. This will clone your integration project and open it in MI.
Step 3: Develop automation in WSO2 Integrator: MI¶
- In the WSO2 Integrator: MI Design View, it will automatically open the Sequence Form, where you can create the automation.
- Give the automation an appropriate Name and click Create.
- A notification would pop up saying
The pom.xml file has been modified. Do you want to update the dependencies?in the bottom right corner. Click Yes. - Click + after the Start node to open the node panel.
-
Select Log and enter
Hello Worldin the Message field. Then click Add.
Step 4: Push to Devant¶
- Click the Source Control icon on the sidebar.
- Click + to stage all changes.
- Add an appropriate commit message and commit.
- Click Sync Changes to push the changes to the remote.
Step 5: Schedule the automation¶
-
Once you push the changes, the overview page of the Devant automation will automatically refresh and show you the Latest Commit. Then Devant will automatically build your automation, showing the Build Status.
Note
The build process may take some time. Once complete, the build status changes to Success. You can see the Build History by clicking Build in the left navigation.
-
Once the Build Status shows
Build completed, click Test to run your automation once. - The development card automatically updates with execution details. Click the refresh button in the top right corner if it is not automatically updated.
-
Click View Logs on an execution. You will see the
Hello Worldlog printed along with the execution time.Tip
You can search for the
Hello Worldkeyword to locate the log quickly. -
Click Schedule to schedule the automation.
- In the BY INTERVAL tab, select Day from the dropdown.
- Enter
1in the Repeat every text box. - Enter
01:00 AMin the At text box and click Update. -
Your automation will now run every day at 01:00 AM. You can see the next execution time as Next run in in the Development card.
-
After successfully testing, you can promote your automation to production by clicking the Promote button.