Migrate Camunda 7 external task workers to Camunda 8 job workers
ProprietaryTurns an ExternalTaskHandler that the Spring Boot external task client subscribes with @ExternalTaskSubscription, as a class or as a @Bean that returns a lambda, into a @JobWorker method with autoComplete = false. The topic becomes the job type, which is what Camunda's Diagram Converter makes of camunda:topic, the lock duration becomes the timeout and the variable names the variables to fetch. complete, handleFailure and handleBpmnError become the JobClient's complete, fail and throw error commands, so the worker completes its job where it did before. A worker that uses the external task or the service in a way Camunda 8 has no counterpart for, such as extending its lock or filtering its subscription by business key, or whose execute method other code calls, such as a test, is left unchanged and listed in the Camunda7CodeNotMigrated data table.
io. moderne. camunda. camunda8. MigrateExternalTaskHandlerToJobWorkermod run . --recipe= io. moderne. camunda. camunda8. MigrateExternalTaskHandlerToJobWorkerInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.