Sample Application with Subflow

Introduction

This guide provides an overview of a sample application designed to demonstrate the use of Subflow in Joget. Each process maintains its own Form table setup. You’ll learn how to configure Subflow entities, pass workflow variables between processes, and ensure data consistency across different workflows.

How does it work?

In this sample application, you’ll set up processes A and B. Process A triggers Process B as a Subflow when certain conditions are met. Workflow variables from Process A are passed to Process B, allowing data to flow between these processes. After completing Process B, the updated workflow variable is returned to Process A, ensuring seamless data exchange.

  • Process A is configured to invoke Process B (Subflow) when specific conditions are satisfied.
  • Workflow Variable statusA from Process A is configured to be passed to Process B and returned upon completion of the Subflow Process B as it has been set to In and Out.


  • Upon completion of the Approve B activity in Process B, the updated statusB is sent back to statusA in Process A.

  • Processes A and B maintain their form table setup, allowing each process to manage its data independently while enabling cross-process data access.

Expected outcome

Once configured, the Subflow allows Process A to trigger Process B and exchange data dynamically through workflow variables. This setup ensures that both processes maintain their data integrity while interacting seamlessly.

This visual demonstrates the interaction between Process A and Process B, highlighting the workflow variable exchange and data consistency.

Download sample app

Download the demo app for Subflow:
Created by Julieth Last modified by Aadrian on Dec 13, 2024