Standardize WSO2 Micro Integrator projects around four rules: one project per deployable unit, every build runs from source control in a pipeline, every flow ships with tests, and the same artifact is promoted through environments with only configuration changing. The checklist below applies whether your team uses Integration Studio or the newer tooling the vendor documents.
It supports our WSO2 Micro Integrator service and the ESB migration guide. Check the vendor documentation for the tools current in your release.
Project layout
| Rule | Why |
|---|---|
| One project per business domain or deployable unit | A change releases only what it affects |
| Separate folders for APIs, sequences, endpoints, templates and data services | Reviewers find things fast |
| Shared artifacts in a shared project with its own version | One fix, many consumers |
| Registry resources in their own project | Config and content are versioned apart from flows |
| Naming standard: domain, purpose, version | Logs and alerts are readable |
| Connector and library dependencies declared in the build, not copied in | Reproducible builds |
- Every API and sequence has a short description of its purpose and owner.
- Every flow writes a correlation ID at the start and passes it on.
- Every endpoint sets a timeout and a failure policy on purpose.
Versioning and CI
- Keep all artifacts and build files in Git. No artifact lives only on a laptop.
- Use a build tool, such as Maven, so the same command builds locally and in the pipeline.
- Version each deployable archive and tag the release commit.
- The pipeline runs: build, static checks, tests, image or archive creation, scan, publish to a repository.
- Protect the main branch. Require a pull request and one reviewer.
- Never build for production from a developer machine.
Test artifacts
| Test | What it proves | Where it runs |
|---|---|---|
| Unit test of a sequence or API | Mediation logic with mocked endpoints | Build |
| Contract test | Request and response shape for each API | Build and test environment |
| Recorded traffic replay | Behavior matches the old flow | Test environment |
| Error-path test | Timeouts, bad input and backend failure behave as designed | Test environment |
| Security test | Authentication and no secrets in the artifact | Pipeline and release |
| Load check | Latency and errors at agreed volume | Spare environment only |
The vendor documents a unit testing capability for Micro Integrator artifacts. Keep test data files in the same project as the flow they test. See the test table in our migration guide for the replay approach.
Promotion between environments
- Build once. Promote the same archive or image from dev to test to production.
- Environment values come from configuration and secrets, not edits to artifacts. See Micro Integrator on Kubernetes.
- Each promotion needs a ticket, the test results and a named approver.
- Production deploys use a rolling or staged approach with a written rollback step.
- Record what runs where: version, date, who approved.
- After release, check logs for the new version for one full business cycle.
Review form
Use this as the pull request template: Does it follow the layout and naming rules? Is there a test for each new flow and error path? Is a correlation ID set? Are timeouts and failure policies set? Are there secrets or environment values in the artifact? Is there a rollback step? If any answer is no, the change waits.
Definition of done for an integration
- Flow built, reviewed and merged.
- Tests written and passing, including error paths.
- Correlation ID and timeouts in place.
- No secrets or environment values in the artifact.
- Runbook entry added: what it does, who owns it, what failure looks like.
- Monitoring and alerts configured.
- Promoted through each environment with recorded approvals.
- Consumers told about the release and any change.
Apply the list to existing flows too. When you take over an estate, score each flow against it and fix the lowest first. That inventory feeds a migration or upgrade plan.
Adopting this on an existing estate
Do not stop work to apply the standards everywhere. Apply them to new work first, then to any flow you touch, then to the highest-risk flows in a scheduled clean-up. Keep a simple tracker of which flows meet the definition of done. Within a few quarters most of the traffic runs through flows that meet it.
Why bother
Integration estates tend to fail in the same ways: flows nobody can find, changes nobody can trace, and releases nobody can reverse. These standards cost a few hours to set up and prevent most of those failures. They also make a later upgrade or migration much cheaper, because the inventory already exists.



