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

Set Config Activity, Map Variables Window


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.