Unit 2 Class Notes
Unit 2 Class Notes
Sequencing the Workflow: It helps in organizing tasks in a well-defined order. Ideal for
processes with a predictable flow where each step follows the previous one.
Linear Flow: Activities are executed one after another in a straight line.
Branching: The flow of execution splits based on conditions.
Looping: A set of activities is repeated multiple times.
Activities
Input: Gathering data from various sources (e.g., user input, files).
Processing: Manipulating and transforming data (e.g., calculations, formatting).
Output: Presenting or storing processed data (e.g., displaying results, saving files).
Decision: Making choices based on conditions (e.g., if-else statements).
Loop: Repeating a sequence of activities until a condition is met (e.g., for loops,
while loops).
Call Activity: Invoking a reusable set of activities.
Flowchart
Data Manipulation
Variables:
o Variables are used to store data during automation. They hold different data
types like String, Integer, Boolean, etc., depending on the operation.
Collection:
o A collection can store multiple values, like arrays or lists, and is useful for
handling groups of data within workflows.
Arguments:
o Arguments allow passing data between workflows. Unlike variables,
arguments can be set as In, Out, or In/Out, controlling how data flows into
and out of workflows.
Data Table:
o A Data Table stores tabular data (rows and columns). It's commonly used
when automating processes involving structured data like spreadsheets or
databases.
Clipboard Management:
o RPA tools can interact with the system clipboard to copy and paste data,
which is useful when automating tasks that require transferring information
between applications.
File Operations:
o This involves automating file handling operations like opening, reading,
writing, and manipulating files. Common file types include text files, CSVs,
Excel files, and PDFs.
Controls
Finding the Control
Acting on a Control
UiExplorer
Handling Events
linear flowchart
branching flowchart
looping flowchart
Activities
input activity
Processing: Manipulating data (e.g., calculations, formatting)
processing activity
output activity
decision activity
Loop: Repeating activities
loop activity
call activity
Flowchart
If-Else Statements:
if (condition) {
// Code to execute if condition is true
} else {
// Code to execute if condition is false
}
Switch Statements:
switch (expression) {
case value1:
// Code to execute if expression equals value1
break;
case value2:
// Code to execute if expression equals value2
break;
default:
// Code to execute if expression
doesn't match any case
}
Data Manipulation
Variables
Collection
Arguments
Data Table
Clipboard Management
Controls
Finding the Control
Identifying UI elements.
Methods: XPath, CSS Selector, Accessibility ID.
Acting on a Control
UiExplorer
Handling Events