and more in a single search tool across platforms. Read the announcement here. |
03/27/2023 04:30 PM
Hello,
I have an application where both entitlements and roles are requestable. So in the workflow, I need to separate roles and entitlements so they can be assigned to their respective rank 1 owners. What is the variable that can be used for role?
for example, in the if-else block to check request type I am using,
ars_requests.requesttype == 3 and entitlement.entitlement_value == null and role==null.
It seems role==null is not working as Request Id is not getting generated with this condition.
03/27/2023 05:16 PM
Hi @piyushm ,
Can you try with the below syntax?
role.role_name==null
Document Link - https://docs.saviyntcloud.com/bundle/EIC-Admin-v23x/page/Content/Chapter12-Workflows/Workflow-Compon...
03/28/2023 05:33 AM
@DaanishJawed - I am getting below error in the logs with above syntax,
:"javax.el.PropertyNotFoundException: Cannot resolve identifier 'role'\n",
03/28/2023 06:10 AM
After changing the "Expression language" to "Groovy", still getting below error.
org.jbpm.api.JbpmException: script evaluation error: javax.script.ScriptException: groovy.lang.MissingPropertyException: No such property: role for class: Script3\
03/28/2023 12:33 PM
Hi @piyushm ,
Try with below and replace it with your respective access type.
Access type 7 refers to Application role.
com.saviynt.ecm.workflow.Request_Access.get(new Long(requestaccesskey)).accesstype == 7
Thanks,
Hemanath J