Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

Like condition Evaluation in Workflow

sukoor
New Contributor III
New Contributor III

HI Team,

I have requirement to compare the entitlement value to be compared with dynamic attributes in condition if else block in workFlow.

I tried below queries but it was not working.

1. ev.entitlement_value like CONCAT( 'Seeburger ',CONCAT( (dynamicAttributes.get('BusinessUnit')),CONCAT( '%', (dynamicAttributes.get('UserRole' )))))

2. entitlement.entitlement_value.contains(CONCAT( 'Seeburger ',CONCAT((dynamicAttributes.get('BusinessUnit')),CONCAT( '%', (dynamicAttributes.get('UserRole'))))))

Can some help me to how to make this work in condition if else in Workflow.

 

Thanks

Abdul Sukoor

 

32 REPLIES 32

rushikeshvartak
All-Star
All-Star

entitlement.entitlement_value.contains('Seeburger ' + dynamicAttributes.get('BusinessUnit') + '%' + dynamicAttributes.get('UserRole'))


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

HI Rushi,

Thank you for your quick reply.

But still i am getting error

Error msg :

stdout F de.odysseus.el.tree.TreeBuilderException: Error parsing '#{(entitlementslist.get(requestaccesskey).entitlement_value.contains('Seeburger ' dynamicAttributes.get('BusinessUnit') '%' dynamicAttributes.get('UserRole'))) eq true }': syntax error at position 84, encountered 'dynamicAttributes', expected ')'

sukoor_0-1725516643387.png

 

entitlement.entitlement_value.contains(concat('Seeburger ', dynamicAttributes.get('BusinessUnit'), '%', dynamicAttributes.get('UserRole'))) eq true 


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

Not working the above Query as well

sukoor_0-1725518430664.png

 

Error:

stdout F 2024-09-05 06:34:45.950 ERROR [traceId=a2a688be63b86b5f, spanId=a2a688be63b86b5f, spanExportable=true, X-Span-Export=true, X-B3-SpanId=a2a688be63b86b5f, TENANT_ID=DEFAULT, X-B3-TraceId=a2a688be63b86b5f] 7 --- [http-nio-8787-exec-36] c.s.s.a.s.impl.RequestAccessServiceImpl : Error in thread interruption|java.util.concurrent.ExecutionException: com.saviynt.ssm.arsms.exception.BadRequestException: ERROR.IN.WORKFLOW| at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[na:na]| at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191) ~[na:na]| at com.saviynt.ssm.arsms.service.impl.RequestAccessServiceImpl.createRequestAsync(RequestAccessServiceImpl.java:705) ~[classes!/:2021.1.0.0-SNAPSHOT]| at com.saviynt.ssm.arsms.service.impl.RequestAccessServiceImpl.processRequest(RequestAccessServiceImpl.java:9650) ~[classes!/:2021.1.0.0-SNAPSHOT]| at com.saviynt.ssm.arsms.controller.v2.RequestAcessControllerV2.createRequest(RequestAcessControllerV2.java:59) ~[classes!/:2021.1.0.0-SNAPSHOT]| at com.saviynt.ssm.arsms.controller.v2.RequestAcessControllerV2$$FastClassBySpringCGLIB$$23525e70.invoke(<generated>) ~[classes!/:2021.1.0.0-SNAPSHOT]|Caused by: com.saviynt.ssm.arsms.exception.BadRequestException: ERROR.IN.WORKFLOW| at com.saviynt.ssm.arsms.service.impl.ProcessInstanceIdHandler.generateJbpmProcessInstanceId(ProcessInstanceIdHandler.java:49) ~[classes!/:2021.1.0.0-SNAPSHOT]| at com.saviynt.ssm.arsms.service.impl.RequestAccessServiceImpl.startRequestProcessing(RequestAccessServiceImpl.java:1026) ~[classes!/:2021.1.0.0-SNAPSHOT]| at com.saviynt.ssm.arsms.service.impl.RequestAccessServiceImpl.lambda$createRequestAsync$0(RequestAccessServiceImpl.java:686) ~[classes!/:2021.1.0.0-SNAPSHOT]| at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[na:na]| at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[na:na]| at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[na:na]|

There extra single quote in end


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

sukoor
New Contributor III
New Contributor III

With or Without single quotes same error

sukoor_0-1725522082249.png

Regards

Abdul Sukoor

sukoor
New Contributor III
New Contributor III

Any suggestions..

Prepare concate on request form with one more dynamic attribute and use in wf


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

Hi Rishi,

I tried preparing the one more dynamic attribute , but here question is how will we get the entitlement value in dynamic attribute without submitting the form.

Below is the dynamic attribute query.

Select
ev.entitlement_value as ID
from
entitlement_values ev
where
case when ev.entitlement_value like CONCAT(
'Seeburger ',
'${BusinessUnit}',
'%',
'${UserRole}'
) then ev.entitlement_value in ('Yes') Else ev.entitlement_value in ('No') End

 

Regards

Abdul Sukoor

stalluri
Valued Contributor II
Valued Contributor II

@sukoor 

Can try this.

(entitlement.entitlement_value.contains(concat('Seeburger ', dynamicAttributes.get('BusinessUnit'), '%', dynamicAttributes.get('UserRole'))) == true)


Best Regards,
Sam Talluri
If you find this a helpful response, kindly consider selecting Accept As Solution and clicking on the kudos button.

sukoor
New Contributor III
New Contributor III

HI Sam,

After inserting above query , i am getting below error.

I think Concate is not working with dynamic attributes.I sthere any other way we can try?

2024-09-06T09:35:50+05:30-ecm--null-7k4r7--2024-09-06T04:05:49.507122465Z stdout F 2024-09-06 04:05:49,507 [http-nio-8080-exec-25] DEBUG services.WorkflowService - ffidpreapprovedmap = [:]
 
2024-09-06T09:35:50+05:30-ecm--null-7k4r7--2024-09-06T04:05:49.550964536Z stdout F 2024-09-06 04:05:49,550 [http-nio-8080-exec-25] ERROR services.WorkflowService - Exception in workflow service
 
2024-09-06T09:35:50+05:30-ecm--null-7k4r7--2024-09-06T04:05:49.550991236Z stdout F javax.el.ELException: Could not resolve function 'concat'
 
2024-09-06T09:35:50+05:30-ecm--null-7k4r7--2024-09-06T04:05:49.550997136Z stdout F at de.odysseus.el.tree.Tree.bind(Tree.java:124)
 
2024-09-06T09:35:50+05:30-ecm--null-7k4r7--2024-09-06T04:05:49.551001536Z stdout F at de.odysseus.el.TreeMethodExpression.<init>(TreeMethodExpression.java:79)
 
2024-09-06T09:35:50+05:30-ecm--null-7k4r7--2024-09-06T04:05:49.551005336Z stdout F at de.odysseus.el.ExpressionFactoryImpl.createMethodExpression(ExpressionFactoryImpl.java:440)
 
2024-09-06T09:35:50+05:30-ecm--null-7k4r7--2024-09-06T04:05:49.551008936Z stdout F at de.odysseus.el.ExpressionFactoryImpl.createMethodExpression(ExpressionFactoryImpl.java:78)
 
2024-09-06T09:35:50+05:30-ecm--null-7k4r7--2024-09-06T04:05:49.551012336Z stdout F at org.jbpm.pvm.internal.el.Expression.create(Expression.java:88)
2024-09-06T09:35:50+05:30-arsms--null-s4hmr--2024-09-06T04:05:49.620172667Z stdout F 2024-09-06 04:05:49.619 ERROR [] 7 --- [pool-236-thread-1] com.saviynt.ssm.arsms.util.ARSUtils : Error in Request to ECMv5 sendPostRequest method: {}|java.lang.IllegalStateException: No thread-bound request found: Are you referring to request attributes outside of an actual web request, or processing a request outside of the originally receiving thread? If you are actually operating within a web request and still receive this message, your code is probably running outside of DispatcherServlet: In this case, use RequestContextListener or RequestContextFilter to expose the current request.| at org.springframework.web.context.request.RequestContextHolder.currentRequestAttributes(RequestContextHolder.java:131) ~[spring-web-5.1.19.RELEASE.jar!/:5.1.19.RELEASE]| at com.saviynt.ssm.arsms.util.JwtTokenUtils.getAuthorizationHeader(JwtTokenUtils.java:65) ~[classes!/:2021.1.0.0-SNAPSHOT]| at com.saviynt.ssm.arsms.util.JwtTokenUtils.getToken(JwtTokenUtils.java:54) ~[classes!/:2021.1.0.0-SNAPSHOT]| at com.saviynt.ssm.arsms.util.JwtTokenUtils.getUsername(JwtTokenUtils.java:36) ~[classes!/:2021.1.0.0-SNAPSHOT]| at com.saviynt.ssm.arsms.util.ARSUtils.checkForSecurityAnswers(ARSUtils.java:1796) ~[classes!/:2021.1.0.0-SNAPSHOT]| at com.saviynt.ssm.arsms.util.ARSUtils.sendPostRequest(ARSUtils.java:1634) ~[classes!/:2021.1.0.0-SNAPSHOT]|
 
2024-09-06T09:35:50+05:30-arsms--null-s4hmr--2024-09-06T04:05:49.62023877Z stdout F 2024-09-06 04:05:49.620 ERROR [] 7 --- [pool-236-thread-1] c.s.s.a.s.impl.ProcessInstanceIdHandler : JbpmFlowException:: null
 
Regards
Abdul

stalluri
Valued Contributor II
Valued Contributor II

@sukoor 
Can you try one of these

(entitlement.entitlement_value.contains('Seeburger ' + dynamicAttributes.get('BusinessUnit') + '%' + dynamicAttributes.get('UserRole')) == true)
or
(entitlement.entitlement_value.contains("Seeburger ${dynamicAttributes.get('BusinessUnit')}%${dynamicAttributes.get('UserRole')}") == true)



Best Regards,
Sam Talluri
If you find this a helpful response, kindly consider selecting Accept As Solution and clicking on the kudos button.

sukoor
New Contributor III
New Contributor III

Hi Sam,

The above queries are not working, please error below

 

2024-09-06T12:47:01+05:30-ecm--null-t8w8d--2024-09-06T07:17:01.883871799Z stdout F 2024-09-06 07:17:01,883 [http-nio-8080-exec-30] ERROR services.WorkflowService - Exception in workflow service
 
2024-09-06T12:47:01+05:30-ecm--null-t8w8d--2024-09-06T07:17:01.883916102Z stdout F de.odysseus.el.tree.TreeBuilderException: Error parsing '#{((entitlementslist.get(requestaccesskey).entitlement_value.contains('Seeburger ' dynamicAttributes.get('BusinessUnit') '%' dynamicAttributes.get('UserRole')) == true)) eq true }': syntax error at position 85, encountered 'dynamicAttributes', expected ')'
 
Thanks
Abdul Sukoor

Did you tried with one value instead of multiple concats


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

HI Rushi,

I tried with below single queries as well , it is failing.

entitlement.entitlement_value.contains(dynamicAttributes.get('BusinessUnit')) eq true

Thanks

Abdul Sukoor

sukoor
New Contributor III
New Contributor III

I think contains and dynamic attributes cant be used same query.

Error ?


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

Error:

2024-09-06T19:31:20+05:30-arsms--null-s4hmr--2024-09-06T14:01:20.281338911Z stdout F 2024-09-06 14:01:20.281 ERROR [traceId=96ab657cab9b0b49, spanId=96ab657cab9b0b49, spanExportable=true, X-Span-Export=true, X-B3-SpanId=96ab657cab9b0b49, TENANT_ID=DEFAULT, X-B3-TraceId=96ab657cab9b0b49] 7 --- [http-nio-8787-exec-7] c.s.s.a.e.ControllerExceptionHandler : Exception |java.util.concurrent.ExecutionException: com.saviynt.ssm.arsms.exception.BadRequestException: ERROR.IN.WORKFLOW| at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[na:na]| at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191) ~[na:na]| at com.saviynt.ssm.arsms.service.impl.RequestAccessServiceImpl.createRequestAsync(RequestAccessServiceImpl.java:705) ~[classes!/:2021.1.0.0-SNAPSHOT]| at com.saviynt.ssm.arsms.service.impl.RequestAccessServiceImpl.processRequest(RequestAccessServiceImpl.java:9650) ~[classes!/:2021.1.0.0-SNAPSHOT]| at com.saviynt.ssm.arsms.controller.v2.RequestAcessControllerV2.createRequest(RequestAcessControllerV2.java:59) ~[classes!/:2021.1.0.0-SNAPSHOT]| at com.saviynt.ssm.arsms.controller.v2.RequestAcessControllerV2$$FastClassBySpringCGLIB$$23525e70.invoke(<generated>) ~[classes!/:2021.1.0.0-SNAPSHOT]|Caused by: com.saviynt.ssm.arsms.exception.BadRequestException: ERROR.IN.WORKFLOW| at com.saviynt.ssm.arsms.service.impl.ProcessInstanceIdHandler.generateJbpmProcessInstanceId(ProcessInstanceIdHandler.java:49) ~[classes!/:2021.1.0.0-SNAPSHOT]| at com.saviynt.ssm.arsms.service.impl.RequestAccessServiceImpl.startRequestProcessing(RequestAccessServiceImpl.java:1026) ~[classes!/:2021.1.0.0-SNAPSHOT]| at com.saviynt.ssm.arsms.service.impl.RequestAccessServiceImpl.lambda$createRequestAsync$0(RequestAccessServiceImpl.java:686) ~[classes!/:2021.1.0.0-SNAPSHOT]| at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[na:na]| at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[na:na]| at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[na:na]|
 
2024-09-06T19:31:20+05:30-ecm--null-kfxqp--2024-09-06T14:01:19.897339125Z stdout F 2024-09-06 14:01:19,897 [http-nio-8080-exec-1] DEBUG ws.JbpmapiController - Enter workflowaccessreqStart
 
2024-09-06T19:31:20+05:30-ecm--null-kfxqp--2024-09-06T14:01:19.897377828Z stdout F 2024-09-06 14:01:19,897 [http-nio-8080-exec-1] DEBUG services.WorkflowService - starting workflow request for RequestKey = 3626
 
2024-09-06T19:31:20+05:30-ecm--null-kfxqp--2024-09-06T14:01:19.903192783Z stdout F 2024-09-06 14:01:19,903 [http-nio-8080-exec-1] DEBUG services.WorkflowService - externalRiskLevelMap = [:]
 
2024-09-06T19:31:20+05:30-ecm--null-kfxqp--2024-09-06T14:01:19.908763324Z stdout F 2024-09-06 14:01:19,908 [http-nio-8080-exec-1] DEBUG services.WorkflowService - dynamicAttributesReqAccess
 
2024-09-06T19:31:20+05:30-ecm--null-kfxqp--2024-09-06T14:01:19.919145159Z stdout F 2024-09-06 14:01:19,919 [http-nio-8080-exec-1] DEBUG services.WorkflowService - dynamicAttributesReqAccess
 
2024-09-06T19:31:20+05:30-ecm--null-kfxqp--2024-09-06T14:01:19.926104685Z stdout F 2024-09-06 14:01:19,925 [http-nio-8080-exec-1] DEBUG services.WorkflowService - Expose dynamic attributes in reqAccessMap
 
2024-09-06T19:31:20+05:30-ecm--null-kfxqp--2024-09-06T14:01:19.926137587Z stdout F 2024-09-06 14:01:19,926 [http-nio-8080-exec-1] DEBUG services.WorkflowService - accountkey = null
 
2024-09-06T19:31:20+05:30-ecm--null-kfxqp--2024-09-06T14:01:19.926388902Z stdout F 2024-09-06 14:01:19,926 [http-nio-8080-exec-1] DEBUG services.WorkflowService - unable to get accounts.
 
2024-09-06T19:31:20+05:30-ecm--null-kfxqp--2024-09-06T14:01:19.929069566Z stdout F 2024-09-06 14:01:19,928 [http-nio-8080-exec-1] DEBUG services.WorkflowService - Enter fetchSAPAccountsCount
 
2024-09-06T19:31:20+05:30-ecm--null-kfxqp--2024-09-06T14:01:19.930559957Z stdout F 2024-09-06 14:01:19,930 [http-nio-8080-exec-1] DEBUG services.WorkflowService - Exit fetchSAPAccountsCount
 
2024-09-06T19:31:20+05:30-ecm--null-kfxqp--2024-09-06T14:01:19.930757669Z stdout F 2024-09-06 14:01:19,930 [http-nio-8080-exec-1] DEBUG services.WorkflowService - Request Access Map [ADD_ACCESS_REQUESTS:[com.saviynt.ecm.workflow.Request_Access : 6259], DELETE_ACC_REQUESTS:[], MODIFY_ACC_REQUESTS:[], NEW_ACC_REQUESTS:[com.saviynt.ecm.workflow.Request_Access : 6258], REMOVE_ACCESS_REQUESTS:[]]
 
2024-09-06T19:31:20+05:30-ecm--null-kfxqp--2024-09-06T14:01:19.93077797Z stdout F 2024-09-06 14:01:19,930 [http-nio-8080-exec-1] DEBUG services.WorkflowService - Request Access count Map [NEW_ACC_REQUESTS_COUNT:1, ADD_ACCESS_REQUESTS_COUNT:1, REMOVE_ACCESS_REQUESTS_COUNT:0, MODIFY_ACC_REQUESTS_COUNT:0, DELETE_ACC_REQUESTS_COUNT:0]
 
2024-09-06T19:31:20+05:30-ecm--null-kfxqp--2024-09-06T14:01:19.930793071Z stdout F 2024-09-06 14:01:19,930 [http-nio-8080-exec-1] DEBUG services.WorkflowService - ffidpreapprovedmap = [:]
 
2024-09-06T19:31:20+05:30-ecm--null-kfxqp--2024-09-06T14:01:20.017901799Z stdout F 2024-09-06 14:01:20,017 [http-nio-8080-exec-1] ERROR services.WorkflowService - Exception in workflow service
 
2024-09-06T19:31:20+05:30-ecm--null-kfxqp--2024-09-06T14:01:20.01808971Z stdout F at org.jbpm.pvm.internal.cmd.StartProcessInstanceInLatestCmd.execute(StartProcessInstanceInLatestCmd.java:63)
 
2024-09-06T19:31:20+05:30-ecm--null-kfxqp--2024-09-06T14:01:20.018093011Z stdout F at org.jbpm.pvm.internal.cmd.StartProcessInstanceInLatestCmd.execute(StartProcessInstanceInLatestCmd.java:36)
 
2024-09-06T19:31:20+05:30-ecm--null-kfxqp--2024-09-06T14:01:20.018142214Z stdout F at com.saviynt.ecm.services.WorkflowService.workflowaccessreqStart(WorkflowService.groovy:1066)
 
2024-09-06T19:31:20+05:30-ecm--null-kfxqp--2024-09-06T14:01:20.018148914Z stdout F at com.saviynt.ws.JbpmapiService.workflowaccessreqStartMS(JbpmapiService.groovy:64)
 
2024-09-06T19:31:20+05:30-ecm--null-kfxqp--2024-09-06T14:01:20.029617315Z stdout F 2024-09-06 14:01:20,029 [http-nio-8080-exec-1] DEBUG services.WorkflowService - Found a request Request key - 3626
 
2024-09-06T19:31:20+05:30-ecm--null-kfxqp--2024-09-06T14:01:20.033645562Z stdout F 2024-09-06 14:01:20,033 [http-nio-8080-exec-1] DEBUG services.WorkflowService - Access Approvers to be DC-[]
 
2024-09-06T19:31:20+05:30-ecm--null-kfxqp--2024-09-06T14:01:20.073043071Z stdout F 2024-09-06 14:01:20,072 [http-nio-8080-exec-1] DEBUG services.WorkflowService - inside sendEmailForRequestDiscontinue
 
2024-09-06T19:31:20+05:30-ecm--null-kfxqp--2024-09-06T14:01:20.145169282Z stdout F 2024-09-06 14:01:20,144 [http-nio-8080-exec-1] DEBUG ws.JbpmapiController - Exit workflowaccessreqStart

Share full workflow wiring [Make image large to get it visible]


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

sukoor
New Contributor III
New Contributor III

Please find the Workflow below

sukoor_0-1725632020278.png

 

share dyn attribute names


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

sukoor
New Contributor III
New Contributor III

If not clear, please find the first part of workflow

sukoor_2-1725632279260.png

 

 

Validate entitlement !=null


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

Yes we are able to validate 'entitlement !=null', we are getting the entitlement value in workflow and able to raise the request.

I think Dynamic attirbutes cant be combined with any type of functions like Contain, Concat etc

Below is the entitlement check inserted in workflow.

sukoor_0-1725859291609.png

Regards

Abdul Sukoor

sukoor
New Contributor III
New Contributor III

dynamic attribute details

sukoor_2-1725859621373.png

 

 

sukoor
New Contributor III
New Contributor III

No It didnt resolve my problem.

sukoor
New Contributor III
New Contributor III

My Problem is how to compare the Entitlement and Dynamic attributes which is coming from Form in Workflow

Use below Logic i have validated 

entitlement.entitlement_value.contains(dynamicAttributes.get('BusinessUnit').concat(' ').concat(dynamicAttributes.get('UserRole')))

rushikeshvartak_0-1725946327196.png

Validation :

rushikeshvartak_2-1725946378624.png

 

 

 


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

sukoor
New Contributor III
New Contributor III

HI Rishi,

Thanks for your support.

Still it was failing for me. Is there any specific settings in Dynamic attributes creation that we need to take care.Let me know if u need any meeting , I can setup meeting in teams,So that you can check directly.

Please find the WorkFlow details and Error

Workflow:

sukoor_0-1725950778342.png

Error :

 
2024-09-10T12:13:22+05:30-arsms--null-s4hmr--2024-09-10T06:43:21.827554497Z stdout F 2024-09-10 06:43:21.827 ERROR [traceId=fed46b63dfe0fe42, spanId=fed46b63dfe0fe42, spanExportable=true, X-Span-Export=true, X-B3-SpanId=fed46b63dfe0fe42, TENANT_ID=DEFAULT, X-B3-TraceId=fed46b63dfe0fe42] 7 --- [http-nio-8787-exec-4] c.s.s.a.e.ControllerExceptionHandler : Exception |java.util.concurrent.ExecutionException: com.saviynt.ssm.arsms.exception.BadRequestException: ERROR.IN.WORKFLOW| at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[na:na]| at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191) ~[na:na]| at com.saviynt.ssm.arsms.service.impl.RequestAccessServiceImpl.createRequestAsync(RequestAccessServiceImpl.java:705) ~[classes!/:2021.1.0.0-SNAPSHOT]| at com.saviynt.ssm.arsms.service.impl.RequestAccessServiceImpl.processRequest(RequestAccessServiceImpl.java:9650) ~[classes!/:2021.1.0.0-SNAPSHOT]| at com.saviynt.ssm.arsms.controller.v2.RequestAcessControllerV2.createRequest(RequestAcessControllerV2.java:59) ~[classes!/:2021.1.0.0-SNAPSHOT]| at com.saviynt.ssm.arsms.controller.v2.RequestAcessControllerV2$$FastClassBySpringCGLIB$$23525e70.invoke(<generated>) ~[classes!/:2021.1.0.0-SNAPSHOT]|Caused by: com.saviynt.ssm.arsms.exception.BadRequestException: ERROR.IN.WORKFLOW| at com.saviynt.ssm.arsms.service.impl.ProcessInstanceIdHandler.generateJbpmProcessInstanceId(ProcessInstanceIdHandler.java:49) ~[classes!/:2021.1.0.0-SNAPSHOT]| at com.saviynt.ssm.arsms.service.impl.RequestAccessServiceImpl.startRequestProcessing(RequestAccessServiceImpl.java:1026) ~[classes!/:2021.1.0.0-SNAPSHOT]| at com.saviynt.ssm.arsms.service.impl.RequestAccessServiceImpl.lambda$createRequestAsync$0(RequestAccessServiceImpl.java:686) ~[classes!/:2021.1.0.0-SNAPSHOT]| at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[na:na]| at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[na:na]| at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[na:na]|
 
2024-09-10T12:13:22+05:30-ecm--null-pndht--2024-09-10T06:43:21.685597372Z stdout F at org.jbpm.pvm.internal.cmd.StartProcessInstanceInLatestCmd.execute(StartProcessInstanceInLatestCmd.java:63)
 
2024-09-10T12:13:22+05:30-ecm--null-pndht--2024-09-10T06:43:21.685599972Z stdout F at org.jbpm.pvm.internal.cmd.StartProcessInstanceInLatestCmd.execute(StartProcessInstanceInLatestCmd.java:36)
 
2024-09-10T12:13:22+05:30-ecm--null-pndht--2024-09-10T06:43:21.685621573Z stdout F at com.saviynt.ecm.services.WorkflowService.workflowaccessreqStart(WorkflowService.groovy:1066)
 
2024-09-10T12:13:22+05:30-ecm--null-pndht--2024-09-10T06:43:21.685624673Z stdout F at com.saviynt.ws.JbpmapiService.workflowaccessreqStartMS(JbpmapiService.groovy:64)
 
2024-09-10T12:13:22+05:30-ecm--null-pndht--2024-09-10T06:43:21.692659046Z stdout F 2024-09-10 06:43:21,692 [http-nio-8080-exec-18] DEBUG services.WorkflowService - Found a request Request key - 3633
 
2024-09-10T12:13:22+05:30-ecm--null-pndht--2024-09-10T06:43:21.697061342Z stdout F 2024-09-10 06:43:21,696 [http-nio-8080-exec-18] DEBUG services.WorkflowService - Access Approvers to be DC-[]
 
2024-09-10T12:13:22+05:30-ecm--null-pndht--2024-09-10T06:43:21.730112663Z stdout F 2024-09-10 06:43:21,729 [http-nio-8080-exec-18] DEBUG services.WorkflowService - inside sendEmailForRequestDiscontinue
 
2024-09-10T12:13:22+05:30-ecm--null-pndht--2024-09-10T06:43:21.74790746Z stdout F 2024-09-10 06:43:21,747 [http-nio-8080-exec-18] DEBUG ws.JbpmapiController - Exit workflowaccessreqStart
 
2024-09-10T12:13:22+05:30-ecm--null-pndht--2024-09-10T06:43:21.601684932Z stdout F 2024-09-10 06:43:21,601 [http-nio-8080-exec-18] DEBUG ws.JbpmapiController - Enter workflowaccessreqStart
 
2024-09-10T12:13:22+05:30-ecm--null-pndht--2024-09-10T06:43:21.601707733Z stdout F 2024-09-10 06:43:21,601 [http-nio-8080-exec-18] DEBUG services.WorkflowService - starting workflow request for RequestKey = 3633
 
2024-09-10T12:13:22+05:30-ecm--null-pndht--2024-09-10T06:43:21.607068493Z stdout F 2024-09-10 06:43:21,606 [http-nio-8080-exec-18] DEBUG services.WorkflowService - externalRiskLevelMap = [:]
 
2024-09-10T12:13:22+05:30-ecm--null-pndht--2024-09-10T06:43:21.613020693Z stdout F 2024-09-10 06:43:21,612 [http-nio-8080-exec-18] DEBUG services.WorkflowService - dynamicAttributesReqAccess
 
2024-09-10T12:13:22+05:30-ecm--null-pndht--2024-09-10T06:43:21.638772724Z stdout F 2024-09-10 06:43:21,638 [http-nio-8080-exec-18] DEBUG services.WorkflowService - dynamicAttributesReqAccess
 
2024-09-10T12:13:22+05:30-ecm--null-pndht--2024-09-10T06:43:21.646529046Z stdout F 2024-09-10 06:43:21,646 [http-nio-8080-exec-18] DEBUG services.WorkflowService - Expose dynamic attributes in reqAccessMap
 
2024-09-10T12:13:22+05:30-ecm--null-pndht--2024-09-10T06:43:21.646572249Z stdout F 2024-09-10 06:43:21,646 [http-nio-8080-exec-18] DEBUG services.WorkflowService - accountkey = null
 
2024-09-10T12:13:22+05:30-ecm--null-pndht--2024-09-10T06:43:21.64659755Z stdout F 2024-09-10 06:43:21,646 [http-nio-8080-exec-18] DEBUG services.WorkflowService - unable to get accounts.
 
2024-09-10T12:13:22+05:30-ecm--null-pndht--2024-09-10T06:43:21.649532248Z stdout F 2024-09-10 06:43:21,649 [http-nio-8080-exec-18] DEBUG services.WorkflowService - Enter fetchSAPAccountsCount
 
2024-09-10T12:13:22+05:30-ecm--null-pndht--2024-09-10T06:43:21.650873038Z stdout F 2024-09-10 06:43:21,650 [http-nio-8080-exec-18] DEBUG services.WorkflowService - Exit fetchSAPAccountsCount
 
2024-09-10T12:13:22+05:30-ecm--null-pndht--2024-09-10T06:43:21.650890639Z stdout F 2024-09-10 06:43:21,650 [http-nio-8080-exec-18] DEBUG services.WorkflowService - Request Access Map [ADD_ACCESS_REQUESTS:[com.saviynt.ecm.workflow.Request_Access : 6270], DELETE_ACC_REQUESTS:[], MODIFY_ACC_REQUESTS:[], NEW_ACC_REQUESTS:[com.saviynt.ecm.workflow.Request_Access : 6269], REMOVE_ACCESS_REQUESTS:[]]
 
2024-09-10T12:13:22+05:30-ecm--null-pndht--2024-09-10T06:43:21.650898239Z stdout F 2024-09-10 06:43:21,650 [http-nio-8080-exec-18] DEBUG services.WorkflowService - Request Access count Map [NEW_ACC_REQUESTS_COUNT:1, ADD_ACCESS_REQUESTS_COUNT:1, REMOVE_ACCESS_REQUESTS_COUNT:0, MODIFY_ACC_REQUESTS_COUNT:0, DELETE_ACC_REQUESTS_COUNT:0]
 
2024-09-10T12:13:22+05:30-ecm--null-pndht--2024-09-10T06:43:21.65091064Z stdout F 2024-09-10 06:43:21,650 [http-nio-8080-exec-18] DEBUG services.WorkflowService - ffidpreapprovedmap = [:]
 
2024-09-10T12:13:22+05:30-ecm--null-pndht--2024-09-10T06:43:21.685448562Z stdout F 2024-09-10 06:43:21,685 [http-nio-8080-exec-18] ERROR services.WorkflowService - Exception in workflow service
 
2024-09-10T12:13:21+05:30-arsms--null-s4hmr--2024-09-10T06:43:20.878752191Z stdout F 2024-09-10 06:43:20.878 DEBUG [traceId=fed46b63dfe0fe42, spanId=fed46b63dfe0fe42, spanExportable=true, X-Span-Export=true, X-B3-SpanId=fed46b63dfe0fe42, TENANT_ID=DEFAULT, X-B3-TraceId=fed46b63dfe0fe42] 7 --- [http-nio-8787-exec-4] com.saviynt.ssm.arsms.util.ARSUtils : Validate for html tag :: test
Regards
Abdul

 

sukoor
New Contributor III
New Contributor III

Our version is 24.2.

What is your version that the use case is successful?

sukoor
New Contributor III
New Contributor III

Hi Rishi,

The workflow is working now.We need to add an extra condition 'entitlement !=null' then only it is working, other wise it is not working

Working Work Flow:

sukoor_0-1725967583237.png

Thank you for your support and response.

 

I have already mentioned entitlement != null in thread also in workflow

Its mandatory because account is not entitlement object hence its required 


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.