Migrate camel-zeebe to camel-camunda
Apache 2.0camel-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. migrateZeebeToCamundamod run . --recipe= org. apache. camel. upgrade. camel423. migrateZeebeToCamundaInstall 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.
- Change Camel component URI across all DSLs
- Change Camel component URI across all DSLs
- Change Maven dependency
org.apache.camel:camel-zeebe - Update Apache Camel configurations keys
- Update Apache Camel configurations keys
- Update Apache Camel configurations keys
- Update Apache Camel configurations keys
- Update Apache Camel configurations keys
- Update Apache Camel configurations keys
- Update Apache Camel configurations keys
- Update Apache Camel configurations keys
- Change type
ZeebeConstantstoCamundaConstants - Change type
AbstractZeebeResponsetoAbstractCamundaResponse - Change type
ZeebeMessagetoCamundaMessage - Change type
org.apache.camel.component.zeebe.model.DeploymentRequesttoorg.apache.camel.component.camunda.model.DeploymentRequest - Change type
org.apache.camel.component.zeebe.model.DeploymentResponsetoorg.apache.camel.component.camunda.model.DeploymentResponse - Change type
org.apache.camel.component.zeebe.model.JobRequesttoorg.apache.camel.component.camunda.model.JobRequest - Change type
org.apache.camel.component.zeebe.model.JobResponsetoorg.apache.camel.component.camunda.model.JobResponse - Change type
org.apache.camel.component.zeebe.model.JobWorkerMessagetoorg.apache.camel.component.camunda.model.JobWorkerMessage - Change type
org.apache.camel.component.zeebe.model.MessageRequesttoorg.apache.camel.component.camunda.model.MessageRequest - Change type
org.apache.camel.component.zeebe.model.MessageResponsetoorg.apache.camel.component.camunda.model.MessageResponse - Change type
org.apache.camel.component.zeebe.model.ProcessDeploymentResponsetoorg.apache.camel.component.camunda.model.ProcessDeploymentResponse - Change type
org.apache.camel.component.zeebe.model.ProcessRequesttoorg.apache.camel.component.camunda.model.ProcessRequest - Change type
org.apache.camel.component.zeebe.model.ProcessResponsetoorg.apache.camel.component.camunda.model.ProcessResponse - Rename Camel header(s) across all DSLs