Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

Inactive Owner Check in Workflow

indrahema95
Regular Contributor
Regular Contributor

Hi,

Do we have any parameter to check the owner status in workflow(if else check). I checked few previous forum questions for reference but nothing worked for me. Any suggestions here?

I tried this (below in wf picture) groovy expression suggested by someone in the forum but it also didn't work. Also I tried using entitlement.ownerRank1.status eq 0 and entitlement.getOwnerRank1().contains(user.status) eq 0

Work_Flow.PNG

Regards,

Indranil

4 REPLIES 4

dgandhi
All-Star
All-Star

Can you try this?

entitlement.getOwnerRank1().contains(user.statuskey) eq 0

Thanks,
Devang Gandhi
If this reply answered your question, please Accept As Solution and give Kudos to help others who may have a similar problem.

rushikeshvartak
All-Star
All-Star

com.saviynt.ecm.identitywarehouse.domain.Users.get(Long.valueOf(entitlement.ownerRank1.join(", "))).statuskey == 0

and language = Groovy


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

DixshantValecha
Saviynt Employee
Saviynt Employee

rushikeshvartak
All-Star
All-Star
com.saviynt.ecm.identitywarehouse.domain.Entitlement_values.executeQuery("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'))

Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.