# 🧩 Sub-Workflows

> **Parent page:** PAW Robot/Studio › Workflow Design **Audience:** RPA Developers **Prerequisites:** More than one workflow defined


---

## Overview

The **Invoke Workflow** activity lets you call another workflow from a workflow. It is used to split large automations into modular subprocesses.

**What you will learn on this page:**

* Sub-workflow design principles
* Using Sub-Workflow
* Argument mapping
* Finding references


---

## Why Sub-Workflows?

| Advantage | Description |
|-----------|-------------|
| Modularity | Common steps such as login and data processing in one place |
| Reuse     | The same subprocess can be called from more than one workflow |
| Maintenance | Small parts are easier to test and update |
| Readability | The main workflow stays simple |


---

## Using **Sub-Workflow**

### Add Invoke Workflow to the workflow


1. Find **Invoke Workflow** in the Activities panel
2. Add it to the Designer
3. Select the workflow in the **Workflow Path** field
4. Map the arguments with **Map Variables**

 ![Set Config Activity, Map Variables Window](https://outline-production-attachments.s3-accelerate.amazonaws.com/uploads/16a71ae5-139a-40ac-a944-e134297802cb/ead6b792-4b02-4f4f-89ff-a9701d4e1b6d/image.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIA4EOUDTOVUICLPZ4P%2F20261123%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20261123T234500Z&X-Amz-Expires=86400&X-Amz-Signature=8c21bde5ebc27dd39ed19f9bff935b2503699beca4db423b092d606617a80535&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject "left-50 =800x414")


---

## Find References

To see where a workflow is used:


1. Right-click the workflow in the project tree
2. **Find References** (Shift+F12)
3. The **References** results are listed in the bottom panel


---

## Example Scenario

```
Default Workflow
├─ Invoke Workflow → Login
├─ Invoke Workflow → GetOrder
├─ Invoke Workflow → ConfirmOrder
└─ Invoke Workflow → Logout
```

Each subprocess is defined in its own workflow file; the main flow only manages the call order.


---