07/10/2023 10:48 PM
Hi,
Is it possible to check add an If Else condition where the condition should check for the entitlement owners whether owner is active or not before submitting. I tried to use this condition but its not working - "entitlement.Owner eq 'inactive' ". can any one suggest if this can be achived. if yes can you please suggest the condition to use.
07/10/2023 11:02 PM
Try with the below condition in if/else block. Keep the expression language as "groovy". Let me know if this helps.
(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).contains('0'))
07/16/2023 10:04 AM
Hi @naveenss This didn't work.
I got this error.
2023-07-16/17:01:55.031 [{}] [https-jsse-nio-443-exec-15] ERROR services.WorkflowService - Error while completing task - 1705864 storing it in JBPM Retry Table
org.jbpm.api.JbpmException: script evaluation error: javax.script.ScriptException: groovy.lang.MissingMethodException: No signature of method: java.lang.Long.contains() is applicable for argument types: (java.lang.String) values: [0]
Possible solutions: toString(), toString(), toString(), notify(), toString(long)
07/16/2023 05:06 PM
(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'))
07/16/2023 06:11 PM
@rushikeshvartak @naveenss Thanks. This worked finally.