Click HERE to see how Saviynt Intelligence is transforming the industry. |
09/28/2024 10:54 PM - edited 09/29/2024 04:33 AM
Hi team,
Can we check the number (count) of active assignee in the 'if else' block of workflow ? I have a condition in which if
1. user raise a request for approver and there is no other active approver present in the user group - approval should route to approver's manager
2. Approver request for self and no other active approver is present in user group - approval should route to approver's manager
Please help me out achieving this.
Regards,
Vikash
09/29/2024 04:11 AM - edited 09/29/2024 04:12 AM
@vvaibhav try this
(com.saviynt.ecm.identitywarehouse.domain.Usergroup_users.executeQuery("select count(*) from Usergroup_users ugu, Users u where ugu.user_groupkey = 'groupkey' AND ugu.userkey=u.usekey AND u.status=1")?.size() != 0)
And then else condition would be approval to manager ..
09/29/2024 05:22 AM
Hi @NM
Thank you for looking into it.
Unfortunately, It did not work. I am not able to submit the request itself. Could you please suggest if there is any other work around. Also, please take a look to my query once more as i have edited it and removed one of the condition.
Regards,
Vikash