What's the easiest way to retrieve the serviceTask associated with an Esxecution

I have a ReactorExecutionListener in a Spring Boot application that receives notifications when a serviceTask gets kicked off. This gets me a DelegateExecution. is there a simple way to retrieve the id of the serviceTask associated with the execution?

I was going down the path of doing this:

.findExternalTaskIdsByQueryCriteria(…) method of the ExternalTaskManager. But I can’t figure out how to inject anything but ExternalTaskService into my bean.

Hi @rmoskal,

You can use the method DelegateExecution#getCurrentActivityId to get the ID of the BPMN activity that is currently executed.

Cheers,
Thorben