and more in a single search tool across platforms. Read the announcement here. |
01/12/2024 05:47 AM
I couldn't find specific details in the documentation, but I remember that at some point, workflow configurations could automatically detect the status of the entitlement owner.
For instance, consider a three-step workflow:
I configured the workflow as described, but if Rank 1 is inactive, the system assigns the request to admins. Please refer to the screenshots below:
01/14/2024 07:38 PM
use Custom Assignment block with custom query to handle above use cases.
01/15/2024 02:33 AM
Hi Rushikesh,
Thank you for the reply!
I tried the below query but it's not working. it's assigning the workflow to Admins.
(Select u.statuskey as eoStatus from Users u,Entitlement_owners eo,Entitlement_values ev where u.id=eo.userkey.id AND eo.entitlement_valuekey.id=ev.id AND ev.id='${entitlement.id}').get(0).toString().contains('0')
Thanks
Gaurav
01/15/2024 05:30 PM
01/19/2024 06:44 AM
Hi @rushikeshvartak,
I apologize for bothering you again. I attempted to execute the query you shared earlier, and it seems to be returning a Null value for a False case. Specifically, when the approver at Rank 1 is present but in inactive state, the workflow defaults to Admin.
Could you assist me in modifying the query? I aim to redirect the workflow to Rank 2 or the False condition if Rank 1 is inactive.
Thanks
Gaurav
01/20/2024 08:40 AM
Above query was sample you need to manipulate logic and update
01/20/2024 08:42 AM - edited 01/20/2024 08:46 AM
01/29/2024 09:34 AM
I tried to run the below query but it's not working properly hence requesting help to correct the query as per the below requirement.
For instance, consider a three-step workflow:
Please find the below query which I'm using:
SELECT case when
(select u.userkey from entitlement_owners eo,users u where ENTITLEMENT_VALUEKEY=${REQUESTACCESSOBJ.id} and u.userkey=eo.userkey and u.statuskey=1 and eo.rank=1 Union select u.userkey from entitlement_owners eo,users u where ENTITLEMENT_VALUEKEY=${REQUESTACCESSOBJ.id} and u.userkey=eo.userkey and u.statuskey=1 and eo.rank=2 and 0!= ( select count(*) from entitlement_owners eo,users u where eo.ENTITLEMENT_VALUEKEY=${REQUESTACCESSOBJ.id} and u.userkey=eo.userkey and u.statuskey=0 and eo.rank=1))is null then (select u.userkey from usergroup_users u where u.USER_GROUPKEY=217)
ELSE
(select u.userkey from entitlement_owners eo,users u where ENTITLEMENT_VALUEKEY=${REQUESTACCESSOBJ.id} and u.userkey=eo.userkey and u.statuskey=1 and eo.rank=1 Union select u.userkey from entitlement_owners eo,users u where ENTITLEMENT_VALUEKEY=${REQUESTACCESSOBJ.id} and u.userkey=eo.userkey and u.statuskey=1 and eo.rank=2 and 0!= ( select count(*) from entitlement_owners eo,users u where eo.ENTITLEMENT_VALUEKEY=${REQUESTACCESSOBJ.id} and u.userkey=eo.userkey and u.statuskey=0 and eo.rank=1))
end
Please help.
Thanks
Gaurav
01/29/2024 12:48 PM
Which logic is not working ?
01/30/2024 12:59 AM
Hi @rushikeshvartak,
Thank you for your reply!
Actually, the system is not assigning the workflow to any approver. The approver column is blank in the request. Looks like some issue with the query itself.
Thanks
Gaurav