How to get Process role from a task


I tried to use ExtensionElementsManagerBean class in my class file to get process role from user task but it causes build failure saying that cannot find symbol import com.haulmont.bpm.core.ExtensionElementsManagerBean;

I need process role from a task before starting the process and how it is possible.

Please help me to get this in my program.


ExtensionElementsManager is located in the core module, and you probably try to use it the web module.