Font Size:

Standard Subflow With Parameters

Introduction

This guide will show you how to set up a process flow using a standard synchronous subflow. You’ll learn how to send and receive Workflow Variables data between two different processes.

How does it work?

  1. Process 1 sends 3 variables to Process 2.
  2. Process 2 can change those variable values.
  3. Process 1 then gets the updated values back.

It’s like Process 1 says: “Here, tweak these for me,” and Process 2 replies, “All done, here you go!”

Step-by-Step Setup

In this exercise, we will focus on setting up a subflow between 2 processes, so let's assume the 2 processes have already been created, where:

  • Process 1 is the main process.

  • Process 2 is the subflow (a smaller process that runs inside the main process).

In Process 1 (Main Process)

Create Workflow Variables
  1. Click the Pencil icon next to your process name to open Process Properties.
  2. Under the Variables section, add 3 Workflow Variables (example: parameter1, parameter2, parameter3).

Add the Subflow

Drag a Subflow element into your process diagram.

Configure the Subflow
  1. Click on the Subflow to open its Properties.
  2. In Subprocess ID, enter the process ID of Process 2 (the subflow).
  3. In the Parameters section, add the same 3 Workflow Variables you created earlier.

In Process 2 (Subflow)

Set Up Workflow Variables

Just like in Process 1, add the 3 Workflow Variables. These Workflow Variables will receive the values sent from the main process.

Link Incoming Variables

Still in above Process Properties:

  1. Scroll down to the Subflow Properties section.
  2. Add 3 variables to accept input from Process 1

Heads-up
The variable names in Process 2 don’t need to match those in Process 1.
What matters is the order you list them in; values are passed based on their position, not their names.
Think of it like packing and unpacking items in the same order into two boxes.

Download sample app

Download Standard Subflow With Parameters below:
Created by Debanraj Last modified by Debanraj on May 28, 2025