cancel
Showing results for 
Search instead for 
Did you mean: 

How to stop the process automatically?

VladimírMendl
Level 3
Hi All, I have process with should run for 20 hours a day (from 6 AM to 2 AM). I prepared schedule to woke up the process on RuntimeRes, but I didn´t find the possibility how to trigger the Request Stop automatically. Did anybody know how to do it? Thank you Vladimir
2 REPLIES 2

Deep.Shah
Level 6
if what you are trying to achieve is stop the process once clock strikes 2 AM, you can add a Decision Stage, to check if current time is Greater than 2 AM. If it is greater than 2 AM, End the process. Regards, Deep Shah

SimenAakhus
Level 3
In the same decision stage you can add 'IsStopRequested()' which returns true or false depending on if 'Request Stop' has been issued from Control Room manually. This allows you to safely stop the process. - Simen