The CreatorCon Call for Content is officially open! Get started here.

Wait for task status change

Dawid2
Giga Guru

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?

5 REPLIES 5

Dr Atul G- LNG
Tera Patron
Tera Patron

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]

****************************************************************************************************************

Hello,

Unfortunately, because of some business policy of our client, we're forced to use Workflows.

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.

 

https://www.servicenow.com/docs/bundle/xanadu-servicenow-platform/page/administer/workflow-activitie...

 

*************************************************************************************************************
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]

****************************************************************************************************************

Chaitanya ILCR
Mega Patron

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

 

ChaitanyaILCR_0-1742550863830.png

ChaitanyaILCR_1-1742551148998.png

 

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya