- Overview
- Setting Up the Prerequisites
- Building the Source
- Running the Migration Tool
- Sending Changes
The integrator-bi-migration-assistant is a comprehensive tool designed to convert integration platform configurations into Ballerina code. This multi-package project includes migration assistants for different integration platforms:
- Mule: Located in the
mule/directory - converts MuleSoft configurations to Ballerina - Tibco: Located in the
tibco/directory - converts TIBCO BusinessWorks configurations to Ballerina
Each package contains its own documentation, samples, and migration tools specific to the respective integration platform.
-
Download and install Java SE Development Kit (JDK) version 21 (from one of the following locations).
-
Generate a GitHub access token with read package permissions, then set the following
envvariables:export packageUser=<Your GitHub Username> export packagePAT=<GitHub Personal Access Token>
Execute the commands below to build from source.
-
To build the package:
./gradlew clean build
-
To run the tests:
./gradlew clean test -
To build without the tests:
./gradlew clean build -x test
First, build the project to create the build/libs/mule-to-ballerina-migration-assistant.jar file.
To run the migration tool, use the following command:
java -jar build/libs/mule-to-ballerina-migration-assistant.jar <mule-xml-config-file-or-project-directory>Parameters:
<mule-xml-config-file-or-project-directory>: Path to the Mule XML configuration file or the Mule project directory to be converted.
Output:
- Mule XML Config File: A standalone
.balfile is generated with the same name as the input file but with a.balextension. This file is located in the same directory as the input file. - Mule Project Directory: A new Ballerina package is created with the same name as the input project directory, appended with a
-ballerinasuffix. This new package is located inside the given project directory path, and a.balfile is created for each Mule XML file within the project.
Before sending changes, ensure you have Python 3 installed. Then, run the following commands to automatically generate mule-specific documentation in the mule package:
python3 scripts/generate_mule_docs_v3.py
python3 scripts/generate_mule_docs_v4.pyThis will generate:
- mule/docs/palette-item-mappings.md
- mule/docs/dataweave-mappings.md
- Update the relevant sections in mule/README.md
For detailed information about each migration assistant, please refer to: