Word
Word
CERTIFICATE
Subject-in-charge Principal
Date:
External Examiner
Date:
Bharati Vidyapeeth's Institute of Management & Information Technology
MCA Semester II AY 2023-24
MCALE233: Robotic Process Automation
INDEX
Name: Vivek Pokharankar MCA SEM II Division : Batch: A1 (Thursday)
CO1 Define the key concepts of Robotic Process Automation and evolution.
CO2 Demonstrate development of BOT with specific tools.
CO3 Apply RPA commands to automate tasks.
CO4 Designing BOT for Cognitive Analytics and Workforce Analytics.
Benefits of RPA:
1. Reduce Burden on IT: Does not disturb underlying legacy systems
2. Reliability: Bots can work 24*7 effectively
3. Cost Cutting Technology: Reduces the size of the manual workforce and hence reduce
costs
4. No Coding Required: Programming skills are not necessary
5. Accurate: Less prone to errors and functions with accuracy and uniformity.
6. Productivity Rate: Execution time much faster than manual process approach
7. Compliance: Follows rules to provide audit free trail
8. Consistency: Repetitive tasks are performed in the same manner each time
Excel HTML
JAVA
ERP
Email
PDF
Web App
Desktop App
Image
Automation Anywhere Architecture:
Client Server Architecture
Bot Creator is the Developer Client
Bot Runner is the runner client
Control Room is the server
Create your First Bot:
Steps to follow
1. Open Community Edition Account: https://www.automationanywhere
.com/products/enterprise/community-edition
2. Login to Control Room
3. Install BotAgent and connect device
Step 1: Add Message box action and Enter the message: “Hello..!!!”
Recorder:
Output:
MCA
SEMESTER II
Robotic Process Automation
Course Code: MCALE23
Practical 1.2
User Variable:
System Variables:
In the System variables, there are pre-defined variables that are provided by Automation
Anywhere. System variables are available to be used in all automation tasks. System Variable
types include the following components as follows.
Date and Time System Variables –
System-related date and time variables.
System Variables –
Loop: Useful in conjunction with Loop commands.
Excel System Variables –
Useful for Excel automation.
Email System Variables –
Useful for Email automation.
Trigger Variables –
Useful in conjunction with triggers.
PDF System Variables –
Useful to be used with PDF command.
System Variables –
Specific to System Settings/Parameters Variables specific to a particular client machine.
Credential Variables:
Credential variables store sensitive information that’s used when running automation tasks.
Credential variables can be used only by the Bot Creator and only in Command fields that
need a credential input.
Actions:
These are essential building blocks of a Bot. They are the commands that tell a Bot what
to do.
For example, the File package contains File related actions, such as Create, Open, Delete,
Print Multiple files and Rename that you can insert into the Bot editor to automate a process
working with files.
String Operation:
Methods to Manipulate and Extract Strings
Assign – assigns a value or a variable value to another string variable
Extract Text –
Use the before, before and/or after, or the after settings to extract a sub-string from a
body of text.
o
Before: You provide the text that precedes the text you’re interested in
extracting, and the action will return everything that comes after.
o
Before and After: You provide the text that precedes the text you’re interested
in as well as the text which comes after the text you’re interested in. The
action will return all the text that comes between the two.
o
Before or After: You provide the text that may precede the text you’re
interested in as well as the text which may come after the text you’re
interested in. The action will attempt to return the preceding/subsequent
text.
Note: Be sure to do lots of testing when using Before or After so you
know exactly what kind of text the bot should expect as a return
o
After: You provide the text that comes after the text you’re interested in
extracting, and the action will return everything that comes before.
Compare –
Compares two strings and returns True if the strings are identical.
Uppercase –
Converts the source string to upper case.
Length
Gets the length of a string.
Split –
Splits the source string into multiple strings using a delimiter.
To Boolean
Splits the source string into multiple strings using a delimiter.
Substring –
Extract part of a larger body of text based on a start position and optional length.
The optional length lets you specify how many characters you intend to extract; the
alternative is that text from the starting position through the end of the provided
source string would be extracted.
Find –
o
returns the position of matching text within a larger body of text.
o
Can be hard-coded text, or could be a regular expression.
Replace -
Splits the source string into multiple strings using a delimiter.
Lowercase –
Splits the source string into multiple strings using a delimiter.
Reverse –
Splits the source string into multiple strings using a delimiter.
Trim –
Splits the source string into multiple strings using a delimiter.
To Number –
Splits the source string into multiple strings using a delimiter.
If statement:
Conditional Statement which executes a task if the condition is either true or false
Step 1: Check if the Calculator is open. In If action select the condition Window exists.
Select the calculator application from the Windows option
a. Display Message “Calculator already open”
Step 2: If not open the calculator. Add Else action and have Application:open action to open
the calculator application
Step 3: Close the program. Close the appilication
Else :
SEMESTER II
Robotic Process Automation Course Code: MCALE23
Practical 2.1
Bot : Launching a website (Facebook)
Step 1: Open the website using Browser: Open action
a) Select the Browser tab
b) Provide Link to open https://www.facebook.com/
Flow:
SEMESTER II
Robotic Process Automation Course Code: MCALE23
Practical 2.2
Bot: Bot to work with MsPaint
Procedure
1. Open a new bot:
a. From the Automation Anywhere Enterprise web interface, select Bots > Mybots.
b. Click Create new > Bot.
c. In the Create Task Bot window, enter a bot name.
d. Accept the default folder location \Bots\. To change where your bot is stored, click Choose
and followthe prompts.
e. Click Create and edit.
2. Insert a Application: Open program/file action.
a. Click Actions.
b. Search for the Application package.
Click in the Actions search box and enter Application. Click the arrow toexpand the Message
Box options.
c. Double-click or drag the Open action to the Bot editor (open space to theright).
3. In the dialog box on the right, specify the fields for the Open program/file action.
a. In the Location of the program/file field, browse the path for MSpaint.exe
4. Insert Recorder: Capture action
a. Click Actions.
b. Search Capture Action from Recorder package
c. In the dialog box set the Paint application.
d. In Capture object, capture any colour from the palate. Select Left Click fromAction
5. Insert Recorder: Capture action
e. Click Actions.
f. Search Capture Action from Recorder package
g. In the dialog box set the Paint application.
h. In Capture object, capture Fill with colour tool. Select Left Click fromAction
6. Insert Recorder: Capture action
i. Click Actions.
j. Search Capture Action from Recorder package
k. In the dialog box set the Paint application.
l. In Capture object, capture the area to be filled with the colour. Select Left
Click from Action
7. Click Save.
Your bot is now ready to run.
8. Test your bot.
Click Run at the top right.
The bot fills the area with the colour selected from the colour palate using the fill withcolour tool.
Bot Name: MSPaintBot
Flow:
SEMESTER II
Robotic Process Automation Course Code: MCALE23
Practical 2.3
Bot: To get the Title of Active Window
Procedure
1. In the dialog box on the right, specify the conditions for the Get
Active Window Title action.
a. In the Assign the windows title variable field,
enter variable name WindowsTitle1 to have
Title bar details
2. Click Save.
Your bot is now ready to run.
3. Test your bot.
Click Run at the top right.
The bot displays a Message box with the text Go be great!.
In the following steps, you configure a variable and insert it in the Message
box
6. Create a variable.
a. Click Variables from the accordion menu on the left panel.
b. Click Create variable (the + sign).
c. Enter vHelloWorld in the name field.
d. Select the Use as output option.
e. Enter Say Go be Great! with a variable in the Default value field.
f. Click Create.
7. Assign the vHelloWorld variable to the Enter the message to display field.
a. Click the Message box action in the Bot editor.
b. In the dialog box, delete the text from the Enter the message to
display field.
c. Either press the F2 key or click the Insert variable icon.
The Insert variable icon is located on the right-side of the text field.
d. Select vHelloWorld from the drop-down list.
e. Click Yes, insert.
8. Click Save.
9. Click Run.
The bot displays a Message box with the text Say Go be Great! with a variable
Flow :
SEMESTER II
Robotic Process Automation Course Code: MCALE23
Practical 2.4
Bot: To close notepad
Procedure
SEMESTER II
Robotic Process Automation Course Code: MCALE23
Practical 3.1
Bot :To automate the task of extracting the data from multiple PDF documents and
storing the data into a text file.
SEMESTER II
Robotic Process Automation Course Code: MCALE23
Practical 3.2
Bot :To automate the task of extracting the data from multiple PDF documents and
storing the data into a CSV/Excel file.
Step 1: Using Excel advanced: Open action open a Excel file D:\Sudeshna2021\RPA\Log
File\Bill.xlsx. Select Sheet contains a header option. Open the file in Read-Write mode only
Step 2: Using Loop
a. Set Iterator as Files in each folder
b. Specify the Folder Path D:\Sudeshna2021\RPA\Utility Bill containing the PDF Files
c. Assign File name and extension to a dictionary variable FilesInFolder3
Flow:
SEMESTER II
Robotic Process Automation Course Code: MCALE23
Practical 3.3
Bot : Automate task of replacing few characters from a string
Procedure:
Step 1: Create a String variable $str1$ and assign value to it
Step 2: Using String:Replace replaces specified part of a 'Source string' with a
'Replacement string'
3. Display the resultant string in the message box
SEMESTER II
Robotic Process Automation Course Code: MCALE23
Practical 3.4
Bot: To Automate task of copying files from a source folder to destination folderTask:
1. Select source folder to copy
2. Create destination folder
3. Copy files
4. Zip the copied files
Procedure
SEMESTER II
Robotic Process Automation Course Code: MCALE23
Practical 3.5
Bot: Extract a table from webpage
This example uses actions from the Browser, Data Table, Recorder, and Window packages.
To extract data from a table, do the following steps:
Procedure
Flow:
SEMESTER II
Robotic Process Automation Course Code: MCALE23
Practical 3.6
Bot: To extract string from TXT file and copy it into excel file Procedure
1. Open TXT file (CSV/TXT package)
2. Open Excel File (Basic Excel PAckage)
3. Select Cell in Excel sheet from where contents to be pasted. (Go To Cell”
Basic Excel Package)
4. Loop (For each row in CSV/TXT)
5. Messagebox (Just to display contents of each row)
6. Set Cell mention variable name with index (mentioned in loop). (Set
Cell” Basic Excel Package)
7. GoTo Cell (for next data in next cell)
8. Set Cell.
9. Repeat for each column
10. For next row, Go To cell: (mention “Go to Beginning of the row” in active cell)
11. Click Save.
12. Close file
Flow:
SEMESTER II
Robotic Process Automation Course Code: MCALE23
Practical 3.7
Bot: To capture text from image Part 1:
Procedure
6. Click Save.
7. Close file
Bot Name: TextFromImage
Flow:
SEMESTER II
Robotic Process Automation Course Code: MCALE23
Practical 4.1
Bot: To Extract Data from Excel
Extracting a particular Cell Value:
Step 1: Using Excel advanced:Open action open the Excel file from the path D:\Sudeshna2021\RPA\
Hosting Games Demo.xlsx
Step 2: Using Excel advanced: Go to Cell action place the cursor in a specific cell C2 in order extract
Dates of the event from the excel file.
Step 3: Using Excel advanced: Get single cell read a particular cell value into a variable
$Data1$
Step 4: Display the Variable value using MessageBox action
Extracting a Multiple Cell Values:
Step 1: Using Excel advanced:Open action open the Excel file from the path D:\Sudeshna2021\RPA\
Hosting Games Demo.xlsx
Step 2: Using Excel advanced: Get multiple cell action read the contents from cell C2 to cell C9 in to
a table variable $ExcelSheetData$
Step 3: Loop through each row in a table $ExcelSheetData$
a) Assign the value of every record in the iteration into Record variable
$DateRecord$
b) Display the Date value using MessageBox action
Flow:
SEMESTER II
Robotic Process Automation Course Code: MCALE23
Practical 5.1
IQ Bot is the only AI solution that you can quickly train to automatically read a variety of
complex documents and extract field-level information. IQ Bot gives you access
to pretrained AI models (domains) for reading invoices, purchase orders, and
other documents. It also
allows you to train your own domains to support new document types.
1.Upload: Prepare and upload sample documents, create an IQ Bot Learning Instance.
2.Analyze: IQ Bot will automatically organize similar documents into groups and map fields
with areas on the document.
3.Review: You will review field mapping for each group and make necessary
corrections. IQ Bot will learn from these corrections and improve the accuracy of data
extraction.
4.Publish: After completing IQ Bot training, you can use the Learning Instance in production
by calling it from RPA Task bot.
Step 1: Goto IQ Bot>Learning Instances and then click Train Other Documents
a. Click Get Started Button
Step 2: Create New Learning Instance and provide the general information
a. Provide Instance Name Instance1_demo1, Document Type Invoice, Upload
your documents upload 2 files
Click each field (left panel) to verify the label and value (center panel) is the same as
the document (right panel).
Preview the mapping after all fields are verified.
Save and go to the next group.
Finally save the current training
RPA allows users to configure robots or softwares that enforce business processes through the
integration of human actions with digital systems. RPA software collects data and orchestrates
applications using the user interface. They interpret data and communicate with other applications to
perform various repetitive tasks.
UiPath is one such RPA tool that can be used for various forms of automation such as Citrix
automation, PDF automation, Web automation, and Windows desktop automation.
In web automation, UiPath enables the web developers to perform various actions like data extraction,
application transfer, report generation, and website testing.
This tool can be integrated with technologies such as Artificial Intelligence (AI), Business Process
Management (BPM), and Enterprise Resource Planning (ERP). Its end-to-end
solutions enable users to automate redundant tasks. The main programming language used in this tool
is Visual Basic (VB).
UiPath components
• UiPath Studio: This component uses visual aids such as diagrams and flowcharts to design
automation processes. It also involves the coding and sequencing of these processes. It consists of
Graphical User Interface (GUI) buttons, drag and drop features, and pre-built templates.
• UiPath Robot: In this component, multiple bots are deployed to execute the automation processes
using pre-defined rules.
• UiPath Orchestrator: This component functions as a web-based application that schedules,
deploys, and manages processes.
The following are the reasons why UiPath is widely used by developers and organizations:
o Compliance: It can help an organization to comply with industry regulations, since it supports
internal review.
o Cost-effectiveness: This tool is cost-effective because there are minimal operational costs.
o Security: The security features of UiPath prevents users from various forms of attacks. When
a user tries to log into the system using a different computer, it will automatically end the
previous session (login).
o Community-centric: It offers a free trial in its community edition with an active community
support with tutorials and tips.
o Speed and accuracy: It completes tasks faster and with greater precision as compared to
humans.
o Customer experience: It is an effective way of improving customer experience.
o Productivity: It boosts productivity in an organization, since many tasks can be completed
simultaneously within a short time.
Features of UiPath
o In-built recorder: Users can record their activities using its in-built recorder.
o Scalability: It has effective debugging handling mechanisms. It can also handle various AI
applications.
o Hosting options: Hosting can be done in a virtual terminal or a cloud.
o Central repository: It consists of a centralized repository that enhances simultaneous
handling of robots by users.
o Application compatibility: UiPath is compatible with various applications, including desktop
and web applications.
o Scrapping functionality: It has an advanced scrapping functionality (wizard-driven) that
allows users to perform data scrapping. Users can scrape data from various applications.
UiPath works in three layers: the client layer, server layer, and persistency layer.
Client Layer
This layer consists of UiPath components that can be accessed by users. These include
UiPath Robots, UiPath Studio, executors, browsers, and the UiPath agent. A developer can use these
components to design various tasks that need to be automated.
The UiPath agent plays the role of a mediator between the server and the client. It provides an avenue
for communicating information. Users can see available jobs in the system tray using this tool.
The agent can change the system settings and enable the current jobs to start or stop. The software
robots uses the executor service to execute tasks in the window application.
Server Layer
This layer displays all the server details. The whole project is uploaded here once the robots have
been fully developed for the execution of tasks.
The server layer consists of an orchestrator that performs various functions such as monitoring
activities, scheduling robots, and generating reports.
Persistency layer
This layer contains database servers that store the configuration details of the software robots. These
include the users’ data, logging information, asset details, and assigned tasks.