|
Errors handling |
Top Previous Next |
|
If there is an error occurs in any step during a task, RoboTask records an error message to the task log and stops the task by default. You can change this behavior. To do it, you should select the "Advanced" tab in the task editor and set the "If Error Occurred" parameter to "Continue Execution". In this case, the task will not be stopped in case of an error. The system variable {IsError} is used to analyze if there was an error in the previous step. This variable contains "True" if there was an error in the previous step and "False" if there was no error in the previous step.
Another method of the error handling is the starting up of another task when an error is raised. For this purpose you need to tune the task like this:
If an error was raised in any step when you perform the task, RoboTask starts up the handler-task and stops the main task. At the start of the error handler RoboTask passes the next parameters:
This set of parameters is enough to definitely identify the error and to undertake any actions. For example:
and etc.
Running RoboTask as an NT service
|