Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

Workflow : Serial workflow if else condition

PHN
New Contributor II
New Contributor II

Hi All,

We are using serial type workflow with SOD condition but IF/ELSE block condition is not working. As per the document, Entitlement variables are not available for serial type workflow. In this scenario, is there a way to implement a conditional check based on the entitlement owner?

Freshdesk document

Pniladhe_1-1704284122662.png

Workflow Screenshot:

Pniladhe_2-1704284467566.png

Thanks,

15 REPLIES 15

rushikeshvartak
All-Star
All-Star

You need to use parallel workflow 


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

Manu269
All-Star
All-Star

Any specific reason not to use Parallel workflow?

Regards
Manish Kumar
If the response answered your query, please Accept As Solution and Kudos
.

PHN
New Contributor II
New Contributor II

Thank you @rushikeshvartak  @Manu269 

Tried with parallel workflow but same error.

We have a AD based application(Endpoint_Filter), which is using AD workflow for access request. In workflow, After IF ELSE check, control is going to both TRUE and FALSE condition block. Tried with both the type(Serial and Parallel) still the same output. This is only happening for Endpoint Filter application not for AD.

Also not seeing any relevant error in log. Attaching the logs and screenshot of workflow.  

Sod / entowners which condition is not working ?

sod conditions try sod > 0 

ent owner

entitlement.entowners.size() eq 0


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

PHN
New Contributor II
New Contributor II

entowners condition is not working. 

With condition entitlement.entowners.size() eq 0 unable to submit the access request. Seeing below error in logs

------------------

2024-01-04T14:34:41+01:00-ecm-{"log":"2024-01-04 13:34:40,586 [http-nio-8080-exec-10] ERROR services.WorkflowService - Exception in workflow service\n","stream":"stdout","time":"2024-01-04T13:34:40.586501811Z"}
2024-01-04T14:34:41+01:00-ecm-{"log":"javax.el.PropertyNotFoundException: Target unreachable, base expression '. entowners' resolved to null\n","stream":"stdout","time":"2024-01-04T13:34:40.586530599Z"}
---------------
Thanks,

Share wf transport. and make sure workflow type is parallel 


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

PHN
New Contributor II
New Contributor II

Please find the attached wf.

Use attached


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

PHN
New Contributor II
New Contributor II

Thank you.

No luck with updated WF, it's going to both TRUE and FALSE blocks.

@PHN : Are you submitting request for only entitlement or new account along with entitlement? if your request has new account along with entitlement then it will not work because account will not have entitlement object


Regards,
Saathvik
If this reply answered your question, please Accept As Solution and give Kudos to help others facing similar issue.

PHN
New Contributor II
New Contributor II

oh yes, that was the issue. I was requesting new account along with entitlement. I will segregate both requests. Thank you for pointing this out.

All good now. thank you @sk @rushikeshvartak 

 

@PHN : Remove entitlement.entowners ==null condition in your ent owner if-else check only use entitlement.getOwnerRank1().size() eq 0 condition and try.

If you have owners at different rank and any rank owner can approve the request then change the condition to below

entitlement.getOwnerRank1().size() eq 0 && entitlement.getOwnerRank2().size() eq 0 && entitlement.getOwnerRank3().size() eq 0 && entitlement.getOwnerRank4().size() eq 0 && entitlement.getOwnerRank5().size() eq 0


Regards,
Saathvik
If this reply answered your question, please Accept As Solution and give Kudos to help others facing similar issue.

PHN
New Contributor II
New Contributor II

Thank you @sk 

Tried with this condition entitlement.getOwnerRank1().size() eq 0 

but still same error, workflow exception.

  • Can you share logs ?
  • Also share steps followed to request - from which tile ? and what level of access requested

Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

Prashant
New Contributor III
New Contributor III

 Hi ,

Please point the if-else condition false node to either assign or reject the access.

If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.