How to set Timer in workflow

chanikya
Tera Guru

Hi 

i have request like this,

if 1st - approval didn't approved with in 1-day , then goto setValue "Cancelled"--End

if approved with in 1-day , goto 2nd- approval , if 2nd approval didn't approved with in 1-day, then goto setValue  "Cancelled"--End.

if TWO approvals approved with in 1-day then goto Setvalue-" complete"---END.

 

So how should i use timer here...???

 

The Workflow is on Custom Table

find_real_file.png

20 REPLIES 20

Allen Andreas
Administrator
Administrator

Hi,

This sounds like you'd need to branch to both the approval request and then a timer activity at the same time. Set the timer for 1 day...and then after the timer activity, draw line to Rejected. Same thing for next activity, one line to the next approval, one line to the next timer activity for 1 day (or set it yourself to 11:59PM that same day...that part you'll have to decide yourself, but the gist of what I'm saying applies).

So basically if any of the time activities pass their time it ends, if they never get to, because the approvals came in, then it comes to completed.

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Good Morning,

I see you're working with someone else, but I literally said the exact same thing up here before they did.

Either way, let me know if you need assistance...

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Chanikya,

you can use timer activity after the approval; so there would be 2 outputs from set values activity

1st goes to timer of 1 day

2nd goes to approval activity

the workflow will either proceed when somebody approves within 1 day or when 1 day crossed; similarly you can do for 2nd approval

find_real_file.png

Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur

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

No,

1st approval not approved with in 1-day directly cancel Request