Migration Workflow

Migrate existing integrations to Apache Camel

Overview

The migration workflow converts existing integrations from other platforms to Apache Camel 4.x using YAML DSL. Instead of manual rewriting, the AI analyzes your existing artifacts, builds a dependency graph, and migrates flow-by-flow with full validation.

Camel-Kit supports migration from MuleSoft Mule and Apache Camel 2.x/3.x.

Supported Migration Paths

MuleSoft Mule 3.x/4.x

MuleSoft → Apache Camel 4.x — the most common migration path.

Camel-Kit understands Mule XML flows, DataWeave 1.x/2.x, connectors, error handling, choice routers, scatter-gather, sub-flows, and flow references.

Key features:

  • Automatic DataWeave → XSLT conversion via DataMapper
  • Component mapping from Mule connectors to Camel components
  • Preservation of error handling semantics
  • Flow-ref → direct: route conversion
Camel 2.x/3.x Modernization

Camel 2.x/3.x → Camel 4.x YAML DSL — modernization for existing projects, including legacy Fuse-based deployments.

  • XML DSL (Spring XML, Blueprint XML) → YAML DSL
  • Deprecated components → modern equivalents
  • OSGi Blueprint → application.properties
  • Karaf features → Maven dependencies

Key updates: camel-http4camel-http, camel-jetty9camel-jetty, camel-netty4camel-netty, camel-activemqcamel-jms

Migration Workflow Steps

Flow-by-Flow Migration

Camel-Kit migrates one flow at a time, not big-bang:

Progress: 3 of 12 flows migrated

Completed:
  ✓ customer-sync.xml::lookupCustomer
  ✓ orders-api.xml::validateOrder
  ✓ orders-api.xml::receiveOrder

Remaining:
  - inventory-update.xml::updateInventory
  - shipping-notification.xml::sendShippingEmail
  ...

This incremental approach lets you:

  • Verify each flow individually
  • Deploy partial migrations
  • Roll back if needed
  • Learn from early flows before tackling complex ones

Common Migration Scenarios

Troubleshooting

Summary

The migration workflow automates platform conversion through six steps:

  1. Initialize - camel-kit init --here --ai claude --source-platform mulesoft
  2. Detect - AI identifies platform and parses artifacts
  3. Graph - Builds dependency graph and determines migration order
  4. Design - Generates Design Specification per flow
  5. Implement - Plan and execute code generation
  6. Verify - Runtime validation with behavioral tests

The result: Camel 4.x YAML routes that preserve the semantics of your original integration, validated with runtime tests, and ready for deployment.

Flow-by-flow migration reduces risk compared to big-bang rewrites. You migrate, verify, and deploy incrementally.