Skip to main content

Build an Automation

Time: Under 10 minutes | What you'll build: An automation that prints Hello World to the terminal when it runs.

An automation runs your integration logic without an external request, on demand or on a schedule. Automations are ideal for data synchronization, report generation, and routine maintenance jobs. This quick start shows the full cycle: add an automation artifact, build the logic in the visual designer, run it, and review the scheduling options for production.

Step 1: Create the integration

  1. Open WSO2 Integrator.
  2. Select the Create New Integration card.
  3. Set Integration Name to HelloWorldAutomation.
  4. Set Project Name to automation-quickstart.
  5. Create Integration.
Create new integration form with Integration Name set to HelloWorldAutomation and Project Name set to automation-quickstartCreate new integration form with Integration Name set to HelloWorldAutomation and Project Name set to automation-quickstart

Step 2: Add an automation artifact

  1. Select your integration from the project overview canvas.
  2. Select + Add Artifact in the design canvas.
  3. Select Automation under Automation.
  4. Select Create.
Create New Automation form opened after selecting Automation under AutomationCreate New Automation form opened after selecting Automation under Automation

Step 3: Add logic

  1. Select + after the Start node to open the node panel.
  2. Select Call Function.
  3. Select Print under io from the function list.
  4. Select Initialize Array for the Values parameter.
  5. Set Values to "Hello World" and select Save.
io:print configuration panel with the Values parameter set to Hello World, ready to be savedio:print configuration panel with the Values parameter set to Hello World, ready to be saved

Step 4: Run and test

  1. Select Run.
  2. Confirm the terminal output contains Hello World.
Running the automation and seeing the Hello World output in the terminalRunning the automation and seeing the Hello World output in the terminal

Scheduling automations

Periodic invocation is configured in an external system once the automation is deployed. Available options include:

  • Cron job: schedule the automation from a cron entry on a Unix or Linux host.
  • Kubernetes: define a CronJob resource to run the automation on a recurring schedule.
  • VM: use a host scheduler such as Windows Task Scheduler or systemd timers.
  • WSO2 Integration Platform: configure the schedule in the WSO2 Integration Platform when the integration is pushed to the cloud.

What's next