Why is a particular Flow not setting the RITM's Stage to Completed (but another Flow is)

GoBucks
Mega Sage

We have 2 Flows-- Flow A and Flow B-- that have service catalog triggers for 2 different service catalog items.

 

Flow A creates a single catalog task. After the catalog task is completed, and the Flow verifies that there are no other manually created tasks under the parent RITM, the parent RITM's Stage is set to Completed.  This one is working as expected.

 

Flow B is only slightly more complex.  Flow B creates 4 parallel paths, using the "Do the following in Parallel" flow logic, with 2 catalog tasks created serially, in each parallel path.  After all 8 catalog tasks are completed, and the Flow verifies that there are no other manually created tasks under the parent RITM, the Flow is configured to set the parent RITM's Stage is to Completed-- just like in Flow A.  However, upon Flow B's completion, while the RITM does get set to active=false, the RITM's Stage remains set to 'work in progress' and NOT Completed.  Why is this the case?

 

BOTH Flow A AND Flow B have the same Stage definitions and the Completed Stage is placed in the same location in BOTH Flows-- right after the catalog tasks, prior to the final action which simply sets the RITM state to Closed Complete.  So, why is Flow B NOT setting the RITM's Stage to Completed like Flow A does?

 

Stage definition for BOTH Flows:

GoBucks_0-1717607549288.png

Again, the above is just fine with Flow A.  Flow B, as described above, never moves the RITM to a Stage of Completed.

5 REPLIES 5

Dnyaneshwaree
Mega Sage

If there is issue to set RITM stages from flow stages, you can simply add one more field value "RITM stage to Closed Complete" in update record of RITM which already set "RITM state to Closed Complete" (Update record - RITM and set 2 fields "state" and "stage" = Closed complete).
Or
You can check that any BR, flow or other logic present for flow B catalog item which affects to set the stage to close complete. If anything present then you need to configure for the same.

Please accept my solution if it works for you and thumps up to mark it as helpful.

Thank you!!


Please accept my solution if it works for you and thumps up to mark it as helpful.
Thank you!!

Dnyaneshwaree Satpute
Tera Guru

Jitendra Diwak1
Kilo Sage

Hi @GoBucks,

 

Please check where are you updating the RITM. This can be done in action by Update record(give the ritm table name and set the state as what you want else you check if any other Business Rule is running which is setting the RITM State.

 

Please accept my solution if works for you and thumps up.

 

Thanks

Jitendra

Please accept my solution if it works for and thumps up.

GoBucks
Mega Sage

@Dnyaneshwaree@Jitendra Diwak1, I ended up creating a Case for this with ServiceNow Support.  After their investigation, this has been determined to be a current defect:

PRB1752255: Flow stage changes are not working after using "Do the following in Parallel" action

 

This is occurring for us in an instance on Washington DC Patch 1 hotfix 3b

 

As Dnyaneshwaree mentioned, a partial work around is to create a record update action at the end of the flow to update the stage of the RITM.  However, the order confirmation page after submitting the catalog item still does not display the full roadmap of all potential stages in my scenario.  So this work around only partially addresses this broken stage behavior.  After submission, I see 2 of my 3 stages on the order confirmation page. I do not see the 'Completed' stage listed there. So that is misleading to the end user, although, the work around will now at least ultimately set the RITM to Stage=Completed.  Hoping that ServiceNow can address this within a future Washington DC patch...

Adithya M
Tera Contributor

@GoBucks  is this defect fixed by SNOW ? any update on this?