Auto-cancel service request

grosch
Mega Expert

In the workflow of a service catalog request I've added an approval step.   I've been asked to have the request automatically cancel itself if the approval step is not completed within X days of time.   How would I implement that?

I would *prefer* not to have a daily scheduled job that checks, but rather have it all inside the workflow itself if possible.

1 ACCEPTED SOLUTION

Mihir Mohanta
Kilo Sage

Hi Scott,


You need to add a timer activity.Send output of a activity to both approval and timer at a time.After the timer activity add a if activity that will check the approval activity is completed or not.If it is not completed then set value to cancel request.



Please mark it as Helpful/Correct according to its impact,



Thanks,


Mihir


View solution in original post

6 REPLIES 6

Mihir Mohanta
Kilo Sage

Hi Scott,


You need to add a timer activity.Send output of a activity to both approval and timer at a time.After the timer activity add a if activity that will check the approval activity is completed or not.If it is not completed then set value to cancel request.



Please mark it as Helpful/Correct according to its impact,



Thanks,


Mihir


Hello Mihir,



May I know what will be the ifScript to check if the approval activity is completed or not? Thanks.



Best Regards,


Diane Miro