Page 1 of 1

RoboTask as Task Scheduler email on fail

Posted: Wed Apr 27, 2005 12:08 pm
by bwatland
I want to use RoboTask as a Task Scheduler replacement with an added
fuction to alert staff if a particular .exe did not run as
scheduled.  I can  schedule a task using RoboTask, to just
run an exe at certain times, but how can I handle task failures?

RoboTask as Task Scheduler email on fail

Posted: Thu Apr 28, 2005 1:36 am
by Oleg
If an error has been occured during task execution you can handle it. At task editor click the "Advanced" tab and set "If error occured" parameter value to "Continue execution". Now task will be not aborted when an error will be raised.
For handling this error you can use "IsError" macrovariable, which shows an error presence in previous step: TRUE - error has been occured, FALSE - if not.

For example:

.... some steps....
Run some application
if {IsError} then
   Send ICQ message to administrator
end if
... some steps ....

RoboTask as Task Scheduler email on fail

Posted: Thu Apr 28, 2005 8:50 am
by bwatland
Thanks, I got it, that helped me figure out the UI a bit better.