Replying to an old thread, so hopefully someone’s still awake
@fml2 I try to do the same, but all I get is the number three (3) even though I’ve set a pattern of R5/PT10S on the service task. Executing it works as expected and the incident is created. But like you, I want to prevent that and take a different route in the process.
This happens both on the JobExecutorContext and ManagementService (as @Hammad_Dar suggested). Also casting the DelegateExecution to a ExecutionEntity (like some examples prescribe) comes up empty.
Using Camunda 7.19 in a Spring Boot fashion.
PS. I guess this one’s still open: https://jira.camunda.com/browse/CAM-9486