REQ not closing when RITM(s) are complete using Flow

gjz
Mega Sage

I recently converted several workflows to flows and have since noticed none of the REQs are getting closed after all RITMs associated with the REQ are complete.  This happens when there is only 1 RITM or multiple RITMs associated with the REQ.

 

When using the workflows, there were OOB business rules that closed the REQ when all RITMs were closed, but for some reason these business rules never run when doing the same activity in Flow.

 

Using workflows, business rules Set Active Flag (RITM), task closer (RITM), Set Closure Fields (RITM), Set Request State (REQ), Mark Request Closed (REQ) used to run in that order.

 

Using flows, none of the business rules run.

 

Why doesn't the REQ get closed when using Flows?  Why don't the business rules run when using Flows? 

1 ACCEPTED SOLUTION

gjz
Mega Sage

I found the answer from someone else's post, unfortunately I didn't keep it open so I can't credit the person.  The reason the REQs are not getting closed is because the stage, not the state needs to be set on the RITM when the flow is complete.  Setting the stage on the RITM to Completed (complete is the value) will trigger the business rules and close the REQ.

View solution in original post

2 REPLIES 2

Sandeep Rajput
Tera Patron
Tera Patron

@gjz Could you please check the trigger conditions for those business rules and see if the trigger conditions are met when the flow is completing its execution? Ideally, the business rule should run regardless of the fact whether the change was triggered from a workflow or a flow.

gjz
Mega Sage

I found the answer from someone else's post, unfortunately I didn't keep it open so I can't credit the person.  The reason the REQs are not getting closed is because the stage, not the state needs to be set on the RITM when the flow is complete.  Setting the stage on the RITM to Completed (complete is the value) will trigger the business rules and close the REQ.