Get user task for attached boundary event

Hi everyone,

I need to get task that boundary event is attached to so I can send notification after certain number of days. I set an execution listener on timer boundary event and in debug mode I see that task is event scope for this boundary event. However, there is no getter for event scope or activity scope on DelegateExecution object. Is there a way to get this value?

Thanks in advance

Hi @JuLog,

which information do you need from the task?

You can try to use the TaskService#TaskQuery to get the task.

Best regards,

I need to know task information such as task definition key and task description from boundary event attached to that task.