Workflow - add DL and logic

sam28
New Contributor
New Contributor

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.

sam28_0-1686670313383.png

 

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

18 REPLIES 18

pruthvi_t
Saviynt Employee
Saviynt Employee

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,


Regards,
Pruthvi

naveenss
All-Star
All-Star

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'

 

Regards,
Naveen Sakleshpur
If this reply answered your question, please click the Accept As Solution button to help future users who may have a similar problem.

sam28
New Contributor
New Contributor

@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.

sam28_0-1687402999423.png

Here is the ent_type,

sam28_1-1687403321488.png

 

 

sam28
New Contributor
New Contributor

I tried using the query from Doc 

sam28_2-1687404831252.png

I can't submit the request.

sam28_3-1687404883306.png

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

Use Entitlement customproperty to route workflow 

@rushikeshvartak 
Can so provide me a sample query for that?

entitlement.customproperty1='Role'

 

Make sure entitlement cp1 is updated

@rushikeshvartak 
I updated the CP1 = 1 and added in the workflow.
entitlement.customproperty1=='1'

sam28_1-1687407962240.png

 


even if the entitlement cp1 is 1 it is going to usergroup not the manager.

sam28_0-1687407915027.png

 

change block name from condition to checkCP1

I tried multiple things.

sam28_0-1687411077725.png

 

Workflow is parallel ?

No, I need it serial.

You can’t use entitlement object in serial wf

That was the reason i am using entitlementtype.

sam28
New Contributor
New Contributor

@rushikeshvartak @naveenss 

I tried parallel approval as well but still no luck.

sam28_0-1687744067339.png

 

Try only

rushikeshvartak_0-1687747991334.png

 

can you share the full logs for this?

Regards,
Naveen Sakleshpur
If this reply answered your question, please click the Accept As Solution button to help future users who may have a similar problem.

sam28
New Contributor
New Contributor

@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.

sam28_1-1687892252039.png

 




sam28_2-1687892303767.png

 

sam28_0-1687892066950.png