Leveraging Default Rules
  • 17 Oct 2022
  • 1 Minute to read
  • Dark
    Light

Leveraging Default Rules

  • Dark
    Light

Article Summary

Overview

 A Rule evaluates input data to determine whether the data matches certain conditions. Decisions offers many simple rules by default in the Flow Designer and the ability to create custom rules. Determining when to use custom rules depends on the complexity of the evaluation needed. 

Leveraging Default Rules

 Using default rules over custom ones is preferable for easier maintenance and visibility. Default rules typically take in Input Data and output a true or false path. If an evaluation calls for comparison against elementary data types, there is likely a simple Rule out of the box in Decisions. These default rules can be found by utilizing the Flow Designer's steps panel search function. 

There are situations where a custom Rule should be utilized. A custom Rule may be a better option if an evaluation calls for multiple and/or statements or checks multiple properties of a composite data type. 

It is not recommended to edit any default Rules, as these are used throughout the Platform.

List of Default Rules 

Below are examples of some common Decisions default Rule evaluations. 

Boolean 

String 

  • String Equals 
  • String Match Step 
    • Matches a string to a list of possible matches 
    • Outputs path of the matched string 
  • String Contains 
  • Is Empty 
  • Is Not Empty 
  • String Does Not End with Any in list 
  • String Does Not Start with Any in list 
  • String Ends With 
  • String Ends with Any in list 
  • String Equals - Advanced 
    • Case Sensitive 
  • String Equals - Case Insensitive 
  • String Is in List 
  • String Is Not in List 
  • String List Contains 
  • String List Contains 
  • All String List Contains at Position
  •  String List Contains Count 
  • String List Contains Five of 
  • String List Contains Four of 
  • String List Contains More than One 
  • String List Contains Three of 
  • String List Contains Two of 
  • String List Does Not Contain
  • String List Does Not Contain All
  • String List Does Not Contain Any
  • String Starts with 
  • String Starts with Any in List 
  • Text List Is Empty 
  • Text List Is Not Empty 

Date/Time 

  • Date Equals
  • Is Date And Time Between 
  • Greater Than (Date) 
  • Greater Than Or Equal To (Date) 
  • Less Than (Date) 
  • Less Than Or Equal To (Date) 
  • In Timespan 
  • Is Now Between 
  • Is Same Day 
  • Date Exists 
  • Date Not Exists 

Number 

  • Equals (Number) 
  • IsNumberMatch 
  • Greater Than (Number) 
  • Greater Than Or Equal To (Number) 
  • Less Than (Number) 
  • Number Greater than 
  • Is Even 

Miscellaneous 

  • Is List Empty: Determines if list of object is empty

Was this article helpful?

What's Next