I noticed a weird issue with the Camunda AbstractBpmnActivityBehavior task. I had deployed a process a few days before and it was working fine. Today, I tried to test it by creating a new instance and the new process instance appeared with running status on Camunda Cockpit and never advances to the next step. Furthermore, tried to debug the flow but the control never reaches in Java execute().
In contrast, I have never seen a similar issue with the JavaDelegate custom tasks.
Does anybody experience a similar issue?
Please refer to the business process and Java implementation.
Business Process:
Java class:
package org.example;
import lombok.extern.slf4j.Slf4j;
import org.camunda.bpm.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior;
import org.camunda.bpm.engine.impl.pvm.delegate.ActivityExecution;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import java.util.List;
@Slf4j
@Component
public class ExternalServiceDelegate extends AbstractBpmnActivityBehavior {
@Override
public void execute(ActivityExecution execution) throws Exception {
String executionId = execution.getId();
log.info("Starting external task for executionId={}", executionId);
String requestType = (String) execution.getVariable("requestType");
//TO EXTERNAL SERVICE HANDLER
//Sends request to kafka queue
//
}
@Override
public void signal(ActivityExecution execution, String signalName, Object signalData) throws Exception {
String executionId = execution.getId();
log.info("Completing external task for executionId={}", executionId);
leave(execution);
}
}
Platform: Running as a Spring Boot service
Spring-Boot: (v2.3.12.RELEASE)
Camunda Platform: (v7.16.0)
Camunda Platform Spring Boot Starter: (v7.16.0)
I really appreciate any input on this issue.
Thanks,
AA