Runtime Selection Sub-Flow
  • 12 Mar 2021
  • 1 Minute to read
  • Dark
    Light

Runtime Selection Sub-Flow

  • Dark
    Light

Article summary

Example Lab Article
While Example Lab projects are resources for public use, articles and assets are not actively maintained. Screenshots and features are from the specified version below. These references may become dated as new versions are released.


Overview

Example Lab Details

Version6.12.1
Root FolderExample Lab-Runtime Selection Sub Flows
Modules None
DependenciesNone

This Example Lab demonstrates how the "Runtime Selection" setting works on a Sub Flow.


Explanation

There are two Flows created for this example: "Alphabet Flow" and "Number Flow", which will be used by the Truth Table. Both Flows use a Show Pop-up step to display a notification on the left side of the Studio. For this example, the Main Flow takes in a string value. The Truth Table evaluates if the input variable is '1' or 'a'. The Truth Table outputs the Flow ID of the "Alphabet Flow" or "Number Flow" based on the input. The Run Flow step is configured to "Runtime Selection" and a Default Flow is selected. The output of the Truth Table is mapped into the input of this step.

For testing, run the Main Flow and either a "1" or "a" for the input. The Pop-up will show which Flow was run.

Reference Articles



Project Download

The examples attached were developed to be instructional and were not developed as officially supported components. For more information or to engage our service team to develop fully supported, production quality solutions, please contact services@decisions.com. Import the project below to a Decisions environment on version 6.12.1 or later using our Importing/Exporting article.





Was this article helpful?