Dependency Inversion for Camunda Tasks

In Camunda Service Tasks can be implemented using so-called delegate expressions, which, in the context of CDI, resolve to @Named annotated beans. This task class has to implement the JavaDelegate interface, which mandates a method named execute, which receives a single argument with a DelegateExecution instance. However there is the Dependency Inversion Principle (DIP), and this way our business code directly depends on two classes from Camunda. Can鈥檛 we do better?...

Status: 馃尡 Seedling 路 Planted: Jun 19, 2025 路 4 min