Tree Rules
  • 08 Oct 2021
  • 1 Minute to read
  • Dark
    Light

Tree Rules

  • Dark
    Light

Article Summary

Overview

A Tree Rule is a Rule that can be made up of a row and column of one axis. It is used to evaluate data with settings that can be customized. Each row and column can have a specific parameter set for Rule evaluations, and other Rule evaluations can be nested within. 

Example

  1. In a Designer Project, click CREATE RULE and click Matrix Rule. Name the Rule and click CREATE.
  2. On the Properties panel under the SETTINGS category, click the drop-down list under Rule Type and select Tree [One Axis].
    The Tree Rule will delete the top parameter to have the left column as its only parameter. The Output Data column will appear after inserting a new parameter into the Rule Column. Output Data will still be changed to a new type in the Output Data Column. For a Tree Rule to evaluate a string, this string will receive an input of what team an employee is in. The Tree will check if the String is empty. If it is not empty, then the Tree Rule will check if the string matches any of the teams listed in the Rule


  3. Click SETUP INPUT DATA.

  4. Click DEFINE. Enter "EmployeeTeam" in the Name field. Click Save and close the Input Data window.
  5. Hover over Add Rule and click the plus sign.
  6.  Navigate to All Rules > Data > Text and select Is Empty Rule. Click ADD.
  7. On the Edit Rule window, select Unknown next to the Value field and select Select From Flow. Select EmployeeTeam and click DONE. Click CLOSE to close the Edit Rule window.
  8. Click the check box on the False row to change the value to False.
     
  9. Hover over the False cell under the Is Empty column. and click the plus sign.
  10. Navigate to All Rules > Data > Text and select the String is in List Rule. Click ADD.
  11. Under the INPUTS category, select Unknown next to the Case Insensitive field and select Constant. Click on the check box that appears. Make the List field a Constant and enter “Accounting", "Marketing" and "IT.” Click Unknown next to the Value field and select Select From Flow. Select EmployeeTeam and click DONE.
  12. Click the checkbox in the False row to make the output False. Click Save to save all changes.



Debug

  1. On the top action bar, click Debug. Enter "IT" for the Employee Team field and click START DEBUGGING.
    The Tree Rule will evaluate the input and display the output evaluation.




Was this article helpful?