Adding Two Numbers With Arguments Using Uipath Studio

Robotic Process Automation is the technology that allows anyone today to configure computer software, or a “robot” to emulate and integrate the actions of a human interacting within digital systems to execute a business process.
 
RPA robots utilize the user interface to capture data and manipulate applications just like humans do. They interpret, trigger responses and communicate with other systems in order to perform a vast variety of repetitive tasks, only substantially better: An RPA software robot never sleeps and makes zero mistakes.
 
UiPath is a leading Robotic Process Automation vendor providing a complete software platform to help organizations efficiently automate business processes.
 
UiPath Studio is a tool that can model an organization's business processes in a visual way.
 
Reading this article, you can learn how to use argument to perform addition operations using UiPath Studio Pro Community.
 
The following important tools are required for developing UiPath Bots,
  1. Windows 7/8.1/10 (Recommended)
  2. UiPath Studio Pro - Community Cloud (It is a free software available online – https://www.uipath.com/start-trial)
Now we can discuss step by step App development.
 
Step1
 
Open UiPath Studio -> Start -> New Project-> Click Process
 
Adding Two Numbers With Arguments Using Uipath Studio
 
Step 2
 
Now, create New Blank Process , Name as UiAdd and give your description.
 
Adding Two Numbers With Arguments Using Uipath Studio
 
Step 3
 
After that UiPath studio creates the project UiAdd with supporting files
 
Adding Two Numbers With Arguments Using Uipath Studio
 
Step 4
 
For performing Addition Operation, create two sequences, Reading Two Numbers and Adding Two Numbers.
 
First, create a sequence for Reading Two Numbers, clickNew->Sequence 
 
Adding Two Numbers With Arguments Using Uipath Studio
 
Give the name as Reading Two Numbers 
 
Adding Two Numbers With Arguments Using Uipath Studio
 
After creating Reading Two Numbers:
 
Adding Two Numbers With Arguments Using Uipath Studio
 
For reading a First Number,
 
Click Activities -> search Input Dialog -> Drag and drop into sequence,
 
Adding Two Numbers With Arguments Using Uipath Studio
 
Set the value Display name, Label, Title, Result (for Result value go to properties window and (click ctrl+k) create the variable out_num1 and verify the variable in the variables tab,
 
Adding Two Numbers With Arguments Using Uipath Studio
 
Next, convert the out_num1 variable as Argument, right click the out_num variable in variables tab -> click Convert to Argument
 
Adding Two Numbers With Arguments Using Uipath Studio
 
After converting out_num1 as argument ,
 
Adding Two Numbers With Arguments Using Uipath Studio
 
Similarly, create one more Input Dialog for Second Number, set the values Display name, Label, Title, Result with argument value as out_num2,
 
Adding Two Numbers With Arguments Using Uipath Studio
 
Next, create a sequence for Adding Two Number, clickNew->Sequence and give the name as Adding Two Number
 
Adding Two Numbers With Arguments Using Uipath Studio
 
Click Activities -> search message box ->Drag and drop in to Adding Two Number sequence. In Arguments tab, click Create Argument and create two arguments as in_num1 and in_num2 and In Properties window, Set thetext value is,
 
in_num1+in_num2
 
Adding Two Numbers With Arguments Using Uipath Studio
 
Step 5
 
Next, we can call both sequences in the Main Workflow,
 
Double Click the Main.xaml workflow, drag and drop the Reading Two Numbers sequence into Main Workflow:
 
Adding Two Numbers With Arguments Using Uipath Studio
 
For mapping local variables to arguments, click the import arguments and set the value in out_num1 argument (click ctrl+k) create the variable num1 and verify the local variable in variables tab.
 
Adding Two Numbers With Arguments Using Uipath Studio
 
Similarly, create one more variable num2 for out_num2:
 
Adding Two Numbers With Arguments Using Uipath Studio
 
Similarly, drag and drop the Adding Two Numbers sequence into Main Workflow. For mapping local variables to arguments, click the import arguments and set the value in in_num1 argument local variable as num1 and in_num2 argument as num2.
 
Adding Two Numbers With Arguments Using Uipath Studio
 
Step 6
 
For running your project in UiAdd, Select debug file -> Run
 
The output of the UiAdd project is:
Adding Two Numbers With Arguments Using Uipath Studio
 
The Second Number:
 
Adding Two Numbers With Arguments Using Uipath Studio
 
The Result of adding values is:
 
Adding Two Numbers With Arguments Using Uipath Studio
 

Summary

 
Now you have successfully created and tested your UiAdd to perform addition operations with parameters passing using UiPath Studio.


Similar Articles