Lesson 1: Variables and Arguments
Lesson Outcomes
By the end of this lesson, learners will be able to:
- Define variables and arguments
- Explain how variables are used in RPA
- Describe the importance of variables in automation
- Understand how data moves within an automation process
Lesson Overview
This lesson introduces variables and arguments, which are the backbone of any RPA process.
Without variables:
👉 Bots cannot store data
👉 Bots cannot pass information
👉 Automation becomes impossible
1. What is a Variable?
A variable is:
A container that holds data values which can change during program execution.
👉 Example:
-
A phone number stored in a variable
-
A username entered into a login system
Variables allow automation to:
- Store information
- Update values
- Transfer data between steps
2. Importance of Variables in RPA
From your document:
Any automation process would hardly be possible without using variables.
Why?
- They allow data to move through the process
- They enable interaction between activities
- They make automation dynamic
👉 Example:
A bot extracts an invoice number → stores it → uses it later to search a database
3. What is Variable Scope?
Scope refers to:
The lifetime and accessibility of a variable within a program.
This means:
-
Where the variable can be used
-
How long it exists
Types of Scope
-
Local Scope
-
Exists within a specific block or activity
-
Cannot be accessed outside that block
-
-
Global Scope
-
Can be accessed throughout the entire automation process
-
4. Variables in Automation Flow
In RPA:
- Variables pass data between activities
- They store intermediate results
- They enable decision-making
👉 Example workflow:
- Extract data
- Store in variable
- Process data
- Output result
5. What are Arguments?
Arguments are used to:
-
Pass data between workflows
-
Share variables between processes
👉 Difference:
-
Variable → Stores data
-
Argument → Transfers data
6. Real-World Example
Scenario: Processing customer orders
- Customer name stored in a variable
- Order ID stored in another variable
- Data passed using arguments between workflows
👉 Result:
Automation runs smoothly across multiple steps.
7. Why This Matters in RPA
- Enables data-driven automation
- Supports complex workflows
- Allows reuse of processes
- Improves efficiency
Lesson Summary
In this lesson, you learned that:
- Variables store data in automation
- Arguments transfer data between processes
- Scope determines where variables can be used
- Variables are essential for any RPA solution
- Automation relies heavily on structured data handling