Sunday, October 13, 2019

UiPath Coding in RPA

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.


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.Automation Debugging
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.

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.

No comments:

Post a Comment

Lab 09: Publish and subscribe to Event Grid events

  Microsoft Azure user interface Given the dynamic nature of Microsoft cloud tools, you might experience Azure UI changes that occur after t...