Migrate camel-zeebe to camel-camunda

Apache 2.0

camel-zeebe, deprecated since 4.19 in favour of camel-camunda (which has shipped since 4.19 with the same 9 operations), was removed in Camel 4.23. Migrates the dependency, the zeebe: URI scheme (including the jobKey to jobType endpoint option rename), the shared model classes, the 8 CamelZeebe* literal header names, the ZeebeConstants type and the camel.component.zeebe.* configuration keys that camel-camunda shares. All steps are bundled in a single dependency-gated recipe so that later steps still see the camel-zeebe dependency after earlier steps have renamed it. Header names are migrated with explicit old-to-new mappings rather than a prefix rename, since RenameHeaderPrefixes only matches the org.apache.camel.Message setHeader/getHeader methods and not the fluent ProcessorDefinition.setHeader(...) route-builder DSL, unlike RenameHeaders which handles both. gatewayHost/gatewayPort (replaced by grpcAddress, a single URL), ZeebeConstants.DEFAULT_GATEWAY_HOST/PORT (no CamundaConstants counterpart), the new SaaS/REST options, the two zeebe-only model classes (renamed rather than dropped: AbstractZeebeResponse to AbstractCamundaResponse and ZeebeMessage to CamundaMessage, both handled below), worker auto-complete behaviour and the zeebe() Endpoint DSL builder are not covered and need manual review.

org.apache.camel.upgrade.camel423.migrateZeebeToCamunda
mod run . --recipe=org.apache.camel.upgrade.camel423.migrateZeebeToCamunda

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.

Recipe list

It runs these recipes, in this order.

  1. Change Camel component URI across all DSLs
  2. Change Camel component URI across all DSLs
  3. Change Maven dependency org.apache.camel:camel-zeebe
  4. Update Apache Camel configurations keys
  5. Update Apache Camel configurations keys
  6. Update Apache Camel configurations keys
  7. Update Apache Camel configurations keys
  8. Update Apache Camel configurations keys
  9. Update Apache Camel configurations keys
  10. Update Apache Camel configurations keys
  11. Update Apache Camel configurations keys
  12. Change type ZeebeConstants to CamundaConstants
  13. Change type AbstractZeebeResponse to AbstractCamundaResponse
  14. Change type ZeebeMessage to CamundaMessage
  15. Change type org.apache.camel.component.zeebe.model.DeploymentRequest to org.apache.camel.component.camunda.model.DeploymentRequest
  16. Change type org.apache.camel.component.zeebe.model.DeploymentResponse to org.apache.camel.component.camunda.model.DeploymentResponse
  17. Change type org.apache.camel.component.zeebe.model.JobRequest to org.apache.camel.component.camunda.model.JobRequest
  18. Change type org.apache.camel.component.zeebe.model.JobResponse to org.apache.camel.component.camunda.model.JobResponse
  19. Change type org.apache.camel.component.zeebe.model.JobWorkerMessage to org.apache.camel.component.camunda.model.JobWorkerMessage
  20. Change type org.apache.camel.component.zeebe.model.MessageRequest to org.apache.camel.component.camunda.model.MessageRequest
  21. Change type org.apache.camel.component.zeebe.model.MessageResponse to org.apache.camel.component.camunda.model.MessageResponse
  22. Change type org.apache.camel.component.zeebe.model.ProcessDeploymentResponse to org.apache.camel.component.camunda.model.ProcessDeploymentResponse
  23. Change type org.apache.camel.component.zeebe.model.ProcessRequest to org.apache.camel.component.camunda.model.ProcessRequest
  24. Change type org.apache.camel.component.zeebe.model.ProcessResponse to org.apache.camel.component.camunda.model.ProcessResponse
  25. Rename Camel header(s) across all DSLs