Dynamic role not working - how to setup it up

189 views
Skip to first unread message

yoke-le...@lafargeholcim.com

unread,
Nov 1, 2018, 1:35:34 AM11/1/18
to Fujitsu RunMyProcess Developer Community
How does Dynamic role work and how to use the dynamic role in the Active/Visible rules?

I have read through the user guide for dynamic lane and I thought that if I add any role id into process task - field “Assign to Entity”, it will be auto add into the dynamic role. But it does not seem to be working.

My users cannot click on a button (button is disabled) in the form. The button Active rule have the below checking. The role id used in the checking are Dynamic roles. The dynamic role cannot seem to get the users name from the static roles entered in the process task - field “Assign to Entity”.

${has_right(P_connected_user.login,'210875')} || ${has_right(P_connected_user.login,'210832')}

I am not sure what step i have miss out.

see attachment for more details
How does Dynamic role work and how to use the dynamic role in the Active.pdf

RunMyProcess Support

unread,
Nov 4, 2018, 11:02:35 PM11/4/18
to Fujitsu RunMyProcess Developer Community, yoke-le...@lafargeholcim.com
Hello Yoke,

Sorry for delay in response.
Freemarker function has_right() determines if the current user is a member of the lane whose id is passed as a parameter (check either user is present in lane or not). Check if a user belongs to a lane in the current execution mode context. It will return true or false as a result.
Please check below RunMyProcess document for dynamic lane.

https://docs.runmyprocess.com/Developer_Guide/Rights/Dynamic_Lanes
https://docs.runmyprocess.com/API_Reference/FM/User.html

Also check use of has_right() function in below example.
https://docs.runmyprocess.com/Developer_Guide/Web_Interface/User_Experience/Menu_Bar

Please do feel free to contact us for any query you should have.


Best Regards,
Gunjan Rajgure
Fujitsu RunMyProcess Support

yoke-le...@lafargeholcim.com

unread,
Nov 8, 2018, 7:34:27 AM11/8/18
to Fujitsu RunMyProcess Developer Community, yoke-le...@lafargeholcim.com
Good day Gunjan,

I don't really get what you meant. Based on the below simple scenario,my understanding is that the button should be active for user A. Did I understanding wrongly ?

1) User A name is in subrole: A2.
2) In the process, the manual tasks are controlled by a dynamic role : A1. In the manual task, the field “Assign to Entity” is assigned to A2.
3) In the web interface - button, the "active" contain the below
${has_right(P_connected_user.login,'A1')}
4) User A open the form. Button should be active



Reply all
Reply to author
Forward
0 new messages