An activity in UiPath is like a set of blocks in UiPath automation process. UiPath comes with various built-in Core activities. There is an option to create certain custom activities to automate processes for ease of use. There are two important steps to create a custom activity. They are:
- Writing custom activity code
- Adding external assembly (.dll) in UiPath.
Also, we neither need a Microsoft visual studio with .NET or NuGet Package explorer. We can code from CodeActivity or NativeActivity. CodeActivity provides an Execute method that can override. We can use CodeActivity for simple custom, synchronous activities, to schedule other activities and so on.
NativeActivity is similar to that of CodeActivity but also lets to abort the execution of the activity, cancel child activity execution. We can use NativeActivity for complex, running long custom activities and so on. We can add our C# code using the directive in VB Studio.
Get ready for the high-paying RPA jobs with these Top RPA Interview Questions and Answers!
Watch this UiPath Tutorial video
UiPath Automation Debugging:
UiPath automation Debugging is the process of identifying and removing errors in the application. It is done to make sure the applications are error-free. Breakpoints are used to pause the project execution to check the state at a given point.
UiPath studio comes with a debug component that is used to locate the problems easily in complex workflows. There is also a real-time engine to log & check the errors in the workflow. The UiPath workflow designer reports these issues to the user. The Properties Inspector panel is displayed during debugging to show relevant properties for active action and the current value of all variables declared. We can also slow the debugging process with the Slow Step option.
Now let’s understand Exception handling in UiPath.
If you have any doubts or queries related to RPA, get them clarified from the RPA experts on our RPA Community!
Exception Handling in UiPath and UiPath Error Handling
The Retry Scope activity (UiPath.Core.Activities.RetryScope), Try Catch activity (System.Activities.Statements.TryCatch) is used for catching and displaying the error notification. The activity body of TryCatch has Try (throws the error), Catch (activities performed when an error occurs) and Finally(final block after trycatch). Single or Multiple Exception types are added in Catch.
This brings us to the end of the Robotic Process Automation tutorial. In this tutorial, we learned in detail the about robotic process automation, different tools in RPA, the lifecycle of RPA, how to deploy UiPath tool, Components of UiPath, UI Automation, working on UiPath Studio, UiPath coding & debugging, Screen Scraping and Citrix Automation.
While here we covered quite a bit of Robotic Process Automation, still there is a lot to know more about it. If you want to learn more, I’d suggest you try out our Intellipaat RPA training where you will learn more about RPA, Design considerations for RPA solution, Capturing & interpreting existing application, Windows Desktop RPA software UiPath, Uipath Automation of back-office repetitive processes, Using variables & arguments for data manipulation, Text & image automation with RPA, Workflow automation, debugging & exception handling and in much more depth than what we were able to cover here.
Preparing for job interviews? Have a look at our blog on UiPath Interview Questions and Answers and excel your hiring process.