How to Get TaskName & TaskId from BPMN file into Java Delegates

Hi Team,
How to get the service task name which we configured in the BPMN.
Task name & Task ID which we configured in BPMN.
I need to get it in Java Delegates. Can someone help me on this.

Hi @vinothkumar,
you can access this information via the DelegateExecution:

@Override
public void execute(DelegateExecution execution) throws Exception {
    String activityId = execution.getCurrentActivityId();
    String activityName = execution.getCurrentActivityName();
  }
3 Likes

Thanks @StephanHaarmann for your quick response.