In a service task you can use the method DelegateExecution#getBpmnModelElementInstance
which returns an instance of org.camunda.bpm.model.bpmn.instance.FlowElement
which allows you to access any elements and attributes defined in the XML.
1 Like