Click HERE to see how Saviynt Intelligence is transforming the industry. |
09/30/2024 04:23 AM
Hi,
We need to use a check at workflow level for 'Account Type'. Is it possible to check accountype for an account at workflow level by using IF/ELSE block.
If yes, how is it possible?
Solved! Go to Solution.
09/30/2024 01:04 PM
Did you try accounts.accounttype?
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.
09/30/2024 11:27 PM
yes, didn't work
I tried:
accounts.get(requestaccesskey).accounttype
09/30/2024 06:21 PM - edited 09/30/2024 06:22 PM
AccountsMap.get(requestaccesskey).accounttype.
10/02/2024 08:04 AM
Hi NM,
AccountsMap.get(requestaccesskey).accounttype did not work, it's not letting me submit request from ARS page itself.
09/30/2024 11:06 PM
@Ishaabove suggestion if not work , save it data in dynamic attribute and get in workflow.
https://forums.saviynt.com/t5/identity-governance/workflow-variable-for-account-name/m-p/39732
10/02/2024 09:28 AM
task.accountKey.accounttype
could you try this
10/02/2024 09:54 AM
or
dynamicAttributes.get('ACCOUNTTYPE').equals('Shared Account')
10/03/2024 06:41 AM
Hi prtkrh007,
task.accountKey.accounttype didn't work. Still not able to submit the request from ars page.
We are trying not to use the dynamic attribute as it will require to add dynamic attributes to all the endpoints.
10/02/2024 11:02 PM
((dynamicAttributes.get('ACCOUNTTYPE') ne null)
and
(dynamicAttributes.get('ACCOUNTTYPE') eq 'Service'))
10/03/2024 08:17 AM
(com.saviynt.ecm.identitywarehouse.domain.Accounts.executeQuery("select a.id from accounts a where a.accounttype='NAME').size() == 0)
Please try this
10/07/2024 02:07 AM
Hi prtkrh007,
After using the above custom query, I'm not able to save the workflow. Attaching an image with the exception I'm getting while trying to save the workflow.
10/07/2024 06:57 AM
Shar workflow wiring screenshot
10/16/2024 03:50 PM
For Account name use this
com.saviynt.ecm.workflow.Request_Access.get(new Long(requestaccesskey)).request_access_attrss.find {"ACCOUNTNAME".equalsIgnoreCase(it.attributeName) }?.attributeValue
10/17/2024 01:15 AM
10/17/2024 09:05 AM
select language as groovy
10/17/2024 01:21 AM
Sharing the error found in log:
"2024-10-17T08:16:30.477+00:00","ecm","","null-2bg5h","","de.odysseus.el.tree.TreeBuilderException: Error parsing '#{(com.saviynt.ecm.workflow.Request_Access.get(new Long(requestaccesskey)).request_access_attrss.find {"ACCOUNTNAME".equalsIgnoreCase(it.attributeName) }?.attributeValue=='Test_user_00354') eq true }': syntax error at position 51, encountered 'Long', expected ')' at de.odysseus.el.tree.impl.Builder.build(Builder.java:104) at de.odysseus.el.tree.TreeStore.get(TreeStore.java:61) at de.odysseus.el.TreeMethodExpression.<init>(TreeMethodExpression.java:76) at de.odysseus.el.ExpressionFactoryImpl.createMethodExpression(ExpressionFactoryImpl.java:440) at de.odysseus.el.ExpressionFactoryImpl.createMethodExpression(ExpressionFactoryImpl.java:78) at org.jbpm.pvm.internal.el.Expression.create(Expression.java:88) at org.jbpm.pvm.internal.model.ExpressionCondition.evaluate(ExpressionCondition.java:41) at org.jbpm.jpdl.internal.activity.DecisionConditionActivity.findTransitionUsingConditions(DecisionConditionActivity.java:62) at org.jbpm.jpdl.internal.activity.DecisionConditionActivity.execute(DecisionConditionActivity.java:47) at org.jbpm.jpdl.internal.activity.DecisionConditionActivity.execute(DecisionConditionActivity.java:43) at org.jbpm.pvm.internal.model.op.ExecuteActivity.perform(ExecuteActivity.java:60) at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperationSync(ExecutionImpl.java:672) at org.jbpm.pvm.internal.model.ExecutionImpl.fire(ExecutionImpl.java:582) at org.jbpm.pvm.internal.model.ExecutionImpl.take(ExecutionImpl.java:487) at org.jbpm.jpdl.internal.activity.ForEachActivity.execute(ForEachActivity.java:123) at org.jbpm.jpdl.internal.activity.ForEachActivity.execute(ForEachActivity.java:53) at org.jbpm.pvm.internal.model.op.ExecuteActivity.perform(ExecuteActivity.java:60) at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperationSync(ExecutionImpl.java:672) at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperation(ExecutionImpl.java:632) at org.jbpm.pvm.internal.model.ExecutionImpl.start(ExecutionImpl.java:217) at org.jbpm.pvm.internal.cmd.StartProcessInstanceInLatestCmd.execute(StartProcessInstanceInLatestCmd.java:63) at org.jbpm.pvm.internal.cmd.StartProcessInstanceInLatestCmd.execute(StartProcessInstanceInLatestCmd.java:36) at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42) at
10/17/2024 09:09 AM
Could you please change the expression language as groovy and try
10/18/2024 07:48 AM
Hi Prateek!
Thanks this worked!
10/19/2024 06:59 PM
Can you share final workflow screenshot for future reference