Service Delegates
Service Delegates
Service Delegates are the Java representation of the Service Tasks in a BPMN model. Service Delegates are linked to a certain Service Task by selecting the Service Task in the Camunda Modeler and adding a Java class to the Implementation
field. This uses the fully qualified class name:
org.package.MyClass
Java classes need to extend AbstractServiceDelegate
and override the doExecute
method. This method holds the actual business logic. The method will be called when the BPMN process execution arrives at the Service Task a Service Delegate is linked to. The constructor of delegate classes also has to forward a ProcessPluginApi
instance to its superclass constructor. An instance of the API can be autowired in the plugin's Spring configuration class when registering the delegate as a Spring Bean.
Related Topics
BPMN Process Execution, Message Delegates, Process Plugin API, Service Tasks