WinAutomation Tutorials - Error Handling [Updated]

Опубликовано: 29 Сентябрь 2024
на канале: Softomotive
4,987
18

WinAutomation is a powerful automation tool that helps you automate any repetitive task on your computer.

In this video, we will cover Error Handling.

Imagine an automated task that runs once a customer completes a purchase on your online shop. By the time the purchase is registered, the process triggers updates the purchase info on the database and then emails the customer about the purchase.

Also, consider that during a transaction the database becomes unreachable. This would result in failure of the process discussed in the beginning. You would not know about this purchase and the customer would wait for their products. Using error handling, you are able to retry any failing actions or perform activities which could correct the errors and proceed with the execution to fulfil the transaction. In case the error is not resolved, you can set to be informed about the transaction and the nature of the error as well as to inform the customer that due to a technical glitch you will need to review the transaction and get back to them the soonest possible.

WinAutomation’s error handling capabilities consists of 4 layers.

The first layer of error handling is within the action itself. Almost all actions, will contain the “Exception Handling” tab where you can set particular rules in case an event that is possible to appear arises.
As an example, consider the “read text from file” action, and that the file used to read is called DailySales.txt and is located in a folder named after the current date which is located on the desktop. This action has three exceptions. First, that the directory that hosts the file does not exist, next, that the file is not found, and lastly that Winautomation is not able to read from the file.

Selecting one of these, you can set its rules. In the event that the folder is not found, you can set the process to run the Function “Folder Missing” that would create such folder. Alternatively, you can select all exceptions to work with the same behaviour. Thus, in case any of the three exceptions happen, the same rules will apply.

The options you have, are to set a variable value, which, as you can see, allows you to use another variable’s value.

Run another process from your database, run a function within the process – as the example we just mentioned - or continue the execution by
- either repeating the same action,
- going to the next,
- or going to a label. You can set a label at any point in the function.

You can set one or more of these and they will apply sequentially.

On the upper section of the exception handling tab, you have the option to set the number of retries, as well as, the interval between them, so that the process first retries the action before applying the set rules.

In case you have a set of actions that use the same error handling rules, you may create and use of an “Exception Block”. This is the second layer of exception handling.

To do so, first, you need to set the “exception block” name. Next, you are able to set similar rules, “Setting a variable”, “running a function” and continuing the execution, repeating the action – similar to the way that was described in the action layer of exception handling- as well as going to the beginning and end of the block. In case the first one does not solve the exception, the second will take effect, to keep the process from failing.

….
You can check out the rest of our Tutorials to find out more about WinAutomation!
….
#WinAutomation #Softomotive #RPA #Windowsautomation #platformoverview #WinAutomationtutorials #macrorecorder #desktopautomation

Find out more information at http://bit.ly/2DvmIx9

Thank you for watching.