Wait for condition timeout

geogeorge
Tera Expert

Hi All,

 

We’ve encountered a case where we need to implement a 'Wait for Condition' on the stage field being set to 'Awaiting Delivery', along with a timeout of 5 hours. If the condition isn’t met within that time, the flow should continue along a different path — ideally using an 'If' condition to check whether the timeout occurred. Has anyone implemented something similar before, or can suggest how to proceed?

 

geogeorge_0-1759911167789.png

 

5 REPLIES 5

palanikumar
Giga Sage
Giga Sage

Hello @geogeorge ,

To check whether the Wait action exited due to timeout, you can add a if block with condition not matching the wait condition. Based on your screen shot you can check if Stage is not Awaiting Delivery

 

Thank you,
Palani

Ankur Bawiskar
Tera Patron
Tera Patron

@geogeorge 

workaround below

1) you will require custom field to determine if the condition was met or not

2) set this custom boolean field as TRUE whenever stage is set with Awaiting Delivery

3) then in your main flow after timeout see the value of this custom field and based on that you will know

a) if flag is set in custom field means no timeout

b) if flag is not set in custom field it means the Stage didn't update in those 5 hours and you are here because of timeout

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@geogeorge 

Hope you are doing good.

Did my reply answer your question?

💡 If my response helped, please mark it as correct ✔️ and close the thread 🔒 — this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

SupriyaWaghmode
Kilo Sage
Kilo Sage

Hello @geogeorge

 

You need to add "5" in hours tab in front of duration field with your condition, This will work with time and condition satisfying. Then you will need "IF" condition to validate state is updated or notWait-for-Condition .png.

 

Thanks & Regards,

Supriya Waghmode |ServiceNow Consultant