Creating a Sequential Rule
  • 27 Jul 2022
  • 2 Minutes to read
  • Dark
    Light

Creating a Sequential Rule

  • Dark
    Light

Article Summary

Overview

A Sequential Rule is a Flow Behavior that connects Rules alongside steps to specify rule conditions that must occur in order. Sequential Rules may appear in a Flow as a Sub Flow and can run as either a Data Return Rule or True/False Rule.


Example

  1. In a Designer Project, create a Flow.
  2. After the Done step, add a Show Form to create a Form.
  3. In the Form Designer, add the following controls: a Checkbox "Y / N," a Drop Down List  "Options," and a Button "Done."
  4. For the Drop Down List, change its List Input Source to Static and provide "A," "B," and "C" values under List Items. Save and exit the Form Designer.

  5. Back in the Flow Designer, select the Form and change its inputs Options and Y / N to Ignore to allow runtime selection.
  6. After the Form, add a Run Sub Flow step and create a new Flow.
  7. In the Element Gallery, open the Advanced tab and select Sequential Rule. Name the Flow and click CREATE.
     
  8. After opening the Sequential Rule in the Flow Designer, select SETUP INPUT DATA.
  9. On the Data Definitions window, enter "Y / Nas a Boolean and "Options" as a String list. Click Save and close.

  10. After the Start step, add a True False Rule step from the Toolbox. For its Value input, change its mapping type to Select From Flow and select the Y / N input data.


  11. Add a Run Truth Table step and connect both the True and False paths to it. Create a Truth Table named "Check Options."
  12. Click SETUP INPUT DATA and add the same inputs as step 9.
  13. Click Select Data Element and select Options.First and then choose Is as the verb. Click the pencil icon underneath it and add rows for each of the Drop Down List's entries: "A", "B", and "C".

  14.  Click the plus sign icon to add a new column. For the new Data Element, select Y / N and Is True for the verb. For Options "B" and "C," select True.
  15. Repeat step 14 this time, configuring the column as the following "Y / N Is False." Select True for the option "A" row. Save all changes and close Rule Designer.

  16. Select the Run Truth Table step and map both of its inputs to their respective values, and connect it to the End step. Save and close the Sequential Rule Flow.

Debug

  1. In the parent Flow, select the Debug action from the Global Action Bar. Then select START DEBUGGING.
  2. Submit example data when the Form runs and then view each Rules outcomes as they occur sequentially in the Debugger.


For further information on Rules, visit the Decisions Forum.

Was this article helpful?