06/26/2023 10:46 AM
Hi All,
We want to check if an Account exists but not in pending/Manually Suspended state - using below if condition in the workflow
(accounts !=null ) and (accounts.status =='2' or accounts.status =='Manually Suspended' )
from the logs it gives this error
javax.el.PropertyNotFoundException: Cannot resolve identifier 'accounts'
'accounts' binding variable is available (from WF help)
any idea , whats wrong with above if condition ?
Thanks,
suresh
06/26/2023 03:46 PM
Have you tried below from document?
ccountsMap This object is used to fetch the account details when a request contains multiple accounts from different endpoints. If a request contains a single account, you can use the accountsMap or accounts objects to fetch the account details. Info This object is introduced in the Release v5.5SP3.20 |
| accountsMap.get(requestaccesskey).customproperty9=='ABC' | ==, != | If Else | Parallel |
06/29/2023 06:43 AM
06/26/2023 03:47 PM
Why don’t you block using dynamic attribute itself
06/27/2023 05:45 AM
Can you provide more details on this - How to block using Dynamic Attribute ?
06/26/2023 04:16 PM
accountsMap.get(requestaccesskey).statys=='2'
06/27/2023 05:47 AM
in case of brand new (valid) account request (accountsMap.get(requestaccesskey).statys=='2') , accountMap object will not exists right ?
06/27/2023 06:01 AM
Add 1 more if conditions if accountMap is not null
06/29/2023 05:43 AM
Its not working please find below and how Dynamic attribute will help to achieve this?
log":"javax.el.PropertyNotFoundException: Cannot resolve identifier 'accountsMap'\n","stream":"stdout","time":"2023-06-29T12:37:09.189020237Z"}"
{"log":"javax.el.PropertyNotFoundException: Cannot resolve identifier 'accountMap'\n","stream":"stdout","time":"2023-06-29T12:41:26.119464682Z"}"
06/29/2023 05:58 PM
Hi @rushikeshvartak @dgandhi ,
since these all variables are not resolving, it will take time to fix the bug, Can you let me know how can we populate account status attribute in a Dynamic attribute so that i will refer in workflow condition?
06/29/2023 08:34 PM
Please create a DA and EP and use similar type of query :
select distinct(a.customproperty6) as ID from users u, user_accounts ua, accounts a, endpoints e where u.userkey=ua.userkey and ua.accountkey=a.accountkey and a.endpointkey = 5 and u.userkey=${requestee}
07/03/2023 08:47 PM
First check type of request like new account or modify/update etc and then if new account direct to appropriate WF and if it is not new account then apply above logic and route the respective WF