The task listner must be used with user task if I'm not mistaken. This is too tight constraint for my usage. While debugging I have see that the information abaut name and id's task is in the DelegateExecution object, but ther ther aren't the relative get method. This is a little bit frustrating.
Actually i pass the name as variable setted with listner in the diagram, and i get it with injection, but my goal is to minimize the overhead operation that the analist must add at the diagram for the execution
Indeed, there is no getter exposed for getting the current active activity-id(s). If you think there are good use-cases you can file an issue suggesting to add the method to the DelegateExecution API. In the mean time, you're stuck with casting the DelegateExecution to ExecutionImpl (or Entity, not sure) and using that.