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 on 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 perform swapping two numbers with WriteLine and assign activity using UiPath Studio Pro Community.
The following important tools are required for developing UiPath Bots,
- Windows 7/8.1/10 (Recommended)
- 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
Step 2
Now, create a new blank process, name it as UiSwap and give your description.
Step 3
After that UiPath studio creates the project UiSwap with supporting files
Step 4
Next , for swapping two numbers:
Double click the Main.xaml workflow,
Click Activities -> search Input Dialog ->Drag and drop into sequence,
For reading a first number:
Set the value's display name, label, title, result (for result value go to variables tab and create a variable FirstNum in the property window,
Similarly, create one more Input Dialog for second number, set the value's display name, label, title, result (for result value go to variables tab and create a variable SecondNum in the property window,
Step 5
For displaying both the numbers, before swapping:
Click Activities -> search Write Line ->Drag and drop in to sequence, Set the properties display name as Before Swapping and text as:
"Before Swapping" + Environment.NewLine +"First Number is : "+ FirstNum.Tostring+Environment.NewLine + "Second Number is : "+ SecondNum.Tostring
Step 6
For swapping two numbers, add 3 assign activities:
First assign activity is:
Click Activities -> search Assign ->Drag and drop in to sequence,
Set the Properties To as FirstNum and expression as FirstNum + SecondNum
Second and Third Assign activity is:
Click Activities -> search Assign ->Drag and drop in to sequence. Set the Properties To as SecondNum and expression as FirstNum - SecondNum
Click Activities -> search Assign ->Drag and drop into sequence. Set the Properties To as FirstNum and expression as FirstNum - SecondNum
Step 7
For displaying both the numbers, after swapping:
Click Activities -> search Write Line ->Drag and drop into sequence,
Set the Properties Display Name as After Swapping and Text as:
"After Swapping" + Environment.NewLine +"First Number is : "+ FirstNum.Tostring+Environment.NewLine + "Second Number is : "+ SecondNum.Tostring
Step 8
For running your project, select debug file -> Run. The output of the UiSwap project is:
The Output for the swapping two numbers is:
Summary
Now you have successfully created and tested your UiSwap for swapping two numbers without a third variable using UiPath Studio.