Migrate Camunda 7 engine service calls to the Camunda 8 CamundaClient
ProprietaryReplaces the RuntimeService, TaskService and ProcessEngine a class is injected with by an io.camunda.client.CamundaClient, and their calls by the client's commands: starting process instances (a business key becomes the 8.10 business ID), correlating messages (a business key becomes the correlation key, so the catch event's correlation key should be =camunda.processInstance.businessId), including a createMessageCorrelation(..) chain that sets at most one set of variables, broadcasting signals, cancelling process instances, setting variables, and claiming, assigning and completing user tasks. Commands are sent and joined, so they stay synchronous. Camunda 7 ids are strings and Camunda 8 keys are numbers, so ids are parsed and keys are turned into strings. A class is only migrated when every use of its engine services has a Camunda 8 counterpart; queries, history and the other engine services do not, and such classes are listed in the Camunda7CodeNotMigrated data table.
io. moderne. camunda. camunda8. MigrateEngineServicesToCamundaClientmod run . --recipe= io. moderne. camunda. camunda8. MigrateEngineServicesToCamundaClientInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.