Retrieve Script Task name programmatically

I inserted a script groovy task in my bpmn. I need to retrieve the name and id of himself. Is it possible? I have execution and this variable but I can’t find the correct class to retrieve the id/name

Thanks

@lsantaniello execution returns:
https://docs.camunda.org/javadoc/camunda-bpm-platform/7.16/org/camunda/bpm/engine/delegate/DelegateExecution.html

see getCurrentActivityName() and getCurrentActivityId()

2 Likes

Thankyou @StephenOTT