How to Use a Workflow as a Dynamic Data Provider for List

Source Code

The source code for this tutorial is available on GitHub at:

This tutorial explains how to use the variable type "Workflow Reference" to act as a dynamic data provider with a list of referenced workflow instances.

This is useful for calling a process from another process of the same workflow or another workflow as explained in Workflow REST API and Function Library.

The "data provider" workflow below has 3 instances


These instances can be listed with a variable "workflow reference" to allow another workflow to use these references and call a process from a selected instance


Variable Configuration

Edit the workflow variables and set the type to "workflow reference"


In the  advanced parameters screen, select the workflow to refer to