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
gorbunkov
(Maxim Gorbunkov)
September 8, 2016, 4:23pm
#2
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
gorbunkov
(Maxim Gorbunkov)
September 13, 2016, 3:58pm
#4
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.