Posts

Showing posts with the label JobWorker

Camunda 8 Service Task with Java

 In Camunda 8, a Service Task is executed by a Job Worker (external worker). In Spring Boot, the easiest way to implement this is with @JobWorker , where the job type (a.k.a. task type) in the BPMN matches the worker’s type . This blog shows a complete working example: BPMN service task → Java worker → update variables → handle failures . 1) BPMN: Configure the Service Task (Job Type) In Camunda Modeler: Add a Service Task Set Implementation to Job Worker (or “External” depending on Modeler version) Set Type to: payment-worker (example) (Optional) Set Retries : 3 Important: The Type must match the Java worker annotation: @JobWorker(type = "payment-worker") 2) Spring Boot Dependencies (Maven) Use Camunda 8 Spring Boot starter (Zeebe): < dependency > < groupId >io.camunda </ groupId > < artifactId >spring-boot-starter-camunda </ artifactId > </ dependency > If you’re using an older setup, you may see io...