Wait for task status change
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2025 02:07 AM
Hello,
We're utilizing workflows and I'm looking for solution for the following scenario:
Once catalog task is created, workflow should wait, let's say, 5 hours and check if the state of the task has been updated. If not, request should be cancelled, if status has been changed - it should progress to the next activity. Is there a way to have it completed?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2025 02:09 AM
HI @Dawid2
Is it possible for you to use Flow Designer instead of Workflow? In Flow Designer, we can easily use 'Wait for Condition,' and based on time, we can take further actions. In Workflow, it might require some code or scripting. So, I recommend trying Flow Designer, as it's low-code.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2025 02:12 AM
Hello,
Unfortunately, because of some business policy of our client, we're forced to use Workflows.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2025 02:14 AM
Hi @Dawid2
You can use wait for on workflow as well and based in time, you can cancel the task and update the stage/state of RITM.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2025 02:59 AM
Hi @Dawid2 ,
yeah lunch a parallel timer activity which waits for specified time
the state of in the if statement which is connected to the timer check if the sctask is still initial state
default value is open so I'm checking against open
if it is still open the if returns yes and cancel the request
if the task is in different state if condition returns no and waits for sctask's closure
to check the state of the sctask
Please mark my answer as helpful/correct if it resolves your query.
Regards,
Chaitanya