Email when Error

Discuss RoboTask here
Post Reply
jpaulcr
Posts: 2
Joined: Wed Mar 01, 2006 5:46 am
Location: Canada

Email when Error

Post 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
markus
Posts: 3
Joined: Thu Mar 02, 2006 4:12 am
Location: Germany

Email when Error

Post by markus »

Hi,
I would be very happy if anyone has a solution for this "problem".
Thank you,
Markus
Oleg
Site Admin
Posts: 3014
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Email when Error

Post 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
Post Reply