Page 1 of 1

Email when Error

Posted: Wed Mar 01, 2006 5:50 am
by jpaulcr
Hello,

Does anyone of you guys know if it is possible to have an email sent if the task has an error when executing?

I know it is possible to use the variable {IsError} to check if there was an error in the PREVIOUS step. The problem is that I don't want to check for errors in each of my key steps. I was wondering if there was something like IF there was an error in one of the steps THEN send email.

Thanks,

Jean-Paul

Email when Error

Posted: Thu Mar 02, 2006 4:22 am
by markus
Hi,
I would be very happy if anyone has a solution for this "problem".
Thank you,
Markus

Email when Error

Posted: Thu Mar 02, 2006 7:55 am
by Oleg
See such algorithm

Set Variable ErorCount to 0
critical step 1
if {IsError} then
   increment variable ErorCount on 1
end if
.....
critical step 2
if {IsError} then
   increment variable ErorCount on 1
end if
.......
critical step 3
if {IsError} then
   increment variable ErorCount on 1
end if
.......
if ErorCount > 0 then
   Show Message "ALARM!!!"
end if