How to stop the process automatically?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
06-01-17 02:58 PM
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
06-01-17 04:37 PM
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
22-01-17 02:35 PM
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
