06/13/2023
08:35 AM
- last edited on
06/13/2023
08:47 AM
by
Dave
Hello Team,
I wan to use handle few use case in workflow. I want your inputs on those.
The work flow is 3 level.
Application/Endpoint: A -> 123(entitlementtype)-> abc(1), defg..(2), hijkl..(3) entitlements
Use case 1: entitlementtype (1, 3) has 3 level approval (manager, department(I used user groups), entitlement) I achieved this using a work flow.
Use case 2: entitlementtype 2 has only 2 level approval (x/y and entitlement owner).
How to archive this in single workflow or can we handle this at entitlementtype level workflows?
I need your inputs.
few entitlements has users and DL(groups) as Owners how to handle this as well?
Best regards,
sam.
#workflows
06/19/2023 10:07 PM
Hi @sam28 ,
We have entitlement values exposed to be used at workflow, but need to check regarding the entitlement types. Please allow me with some time to check and revert on this.
Thanks,
06/19/2023 10:37 PM
Hi @sam28 ,
Use the below expression in the workflow if/else block with expression language as "Select" to check the entitlementtype value. Let me know if this helps.
entitlement.entitlementtypekey.entitlementname eq 'Ent1'
06/21/2023 08:03 PM - edited 06/21/2023 08:08 PM
@naveenss
I tried to use the query but it is not validating it entitlement.entitlementtypekey.entitlementname eq 'Viewer'
It is directly going to group approval.
Here is the ent_type,
06/21/2023 08:39 PM
I tried using the query from Doc
I can't submit the request.
Logs error:
java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191) ~[na:na]|\u0009at com.saviynt.ssm.arsms.service.impl.RequestAccessServiceImpl.createRequestAsync(RequestAccessServiceImpl.java:698) ~[classes!/:2021.1.0.0-SNAPSHOT]|\u0009at com.saviynt.ssm.arsms.service.impl.RequestAccessServiceImpl.processRequest(RequestAccessServiceImpl.java:9458) ~[classes!/:2021.1.0.0-SNAPSHOT]|\u0009at com.saviynt.ssm.arsms.controller.v2.RequestAcessControllerV2.createRequest(RequestAcessControllerV2.java:59) ~[classes!/:2021.1.0.0-SNAPSHOT]|\u0009at com.saviynt.ssm.arsms.controller.v2.RequestAcessControllerV2$$FastClassBySpringCGLIB$$23525e70.invoke(\u003cgenerated\u003e) ~[classes!/:2021.1.0.0-SNAPSHOT]|Caused by: com.saviynt.ssm.arsms.exception.BadRequestException: ERROR.IN.WORKFLOW|\u0009at com.saviynt.ssm.arsms.service.impl.ProcessInstanceIdHandler.generateJbpmProcessInstanceId(ProcessInstanceIdHandler.java:49) ~[classes!/:2021.1.0.0-SNAPSHOT]|\u0009at com.saviynt.ssm.arsms.service.impl.RequestAccessServiceImpl.startRequestProcessing(RequestAccessServiceImpl.java:1019) ~[classes!/:2021.1.0.0-SNAPSHOT]|\u0009a
06/21/2023 08:48 PM
Use Entitlement customproperty to route workflow
06/21/2023 08:51 PM
@rushikeshvartak
Can so provide me a sample query for that?
06/21/2023 08:52 PM
06/21/2023 09:26 PM
@rushikeshvartak
I updated the CP1 = 1 and added in the workflow.
entitlement.customproperty1=='1'
even if the entitlement cp1 is 1 it is going to usergroup not the manager.
06/21/2023 09:55 PM - edited 06/21/2023 09:56 PM
change block name from condition to checkCP1
06/21/2023 10:18 PM
I tried multiple things.
06/21/2023 10:22 PM
Workflow is parallel ?
06/21/2023 10:25 PM
No, I need it serial.
06/21/2023 10:35 PM
You can’t use entitlement object in serial wf
06/21/2023 10:43 PM
That was the reason i am using entitlementtype.
06/25/2023 06:49 PM
06/25/2023 07:53 PM
06/27/2023 01:41 AM
can you share the full logs for this?
06/27/2023 12:01 PM
@rushikeshvartak
I tried 'entitlement.customproperty1=='ABC'' but still it didn't work.
@naveenss
I also tried 'entitlement.entitlementtypekey.entitlementname == 'XYZ'' but still it didn't work.
when i selected the language as groovy. I can't submit the request.