BPM Issue - How To Get User Task role in program

Hi,

Suppose i created Two roles (lets say Administrators and caseworker) during my process model design.

And i assigned Administrators role to user task (lets say Approval).

I want to get role which was assigned to my created user task during the process model design( i.e Administrators) in my program.

Please help me to get the role in my code.

Thanks,
Subrat

Hi, if you have a ProcTask object, you can get the ProcRole by the following references chain: ProcTask → ProcActor → ProcRole (see the data model diagram here:
[url=https://doc.cuba-platform.com/bpm-6.2/datamodel.html]https://doc.cuba-platform.com/bpm-6.2/datamodel.html[/url])

Hi Max,

Thanks for your reply.
But I need process role of user task before starting the process i.e ProcessRuntimeManager.startProcess() method in my program.

Thanks,
Subrat

I suppose, the following topic is about the same problem: [url=]https://www.cuba-platform.com/discuss/t/how-to-get-process-role-of-a-user-task[/url]. Let’s continue the discussion there if necessary.