ServiceNow Learning 87: Resolution - How to fix the flows stuck on "Waiting" state?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2023 06:56 AM
Hi All,
Today I have come across a scenario wherein the flow got stuck on Waiting for so long. So here I will cover what to do in these scenarios:
In some cases, you may find a flow is unexpectedly stuck in the "waiting" state even though:
- The approvals generated by the "ask for approval" action have been updated to "approved", "rejected", etc.
- The wait for condition has been satisfied
Resolution:
Copy the sys_flow_context record sys_id from the context record and run the following script in Scripts - Background:
sn_fd.FlowAPI.nudgeFlow('<sys_flow_context.sys_id>', 1);
Where "1" is the amount of time the system should wait before nudging the Flow, in seconds.
Hope this helps.
I hope this article helpful. Please mark it as helpful and bookmark if you like it.
Regards,
Shamma
- 1,021 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2023 08:56 AM
Great info, short and straight to the info. Thanks for sharing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2023 10:54 AM
Thanks alot.
Keep reading and sharing with others.
Regards,
Shamma