Using the Rule DebuggerLast Updated: 02/06/2016 Introduced in Verision: 2.0
Rules evaluate a data input and return an outcome that is dependent on whether the input satisfies the rule’s conditions. Before using a rule in a production scenario, it can be useful to test it with the Rule Debugger.
To use the Rule Debugger, open the rule you’d like to test in the Rule Designer and click the Debug Rule link at the top of the screen. The debugger will prompt you to supply any required inputs before allowing the rule to run. Resulting outcomes or objects will be reported afterward, along with detailed data about each condition.
Note that if you’re running version 3.5 or higher, you’ll need to click Test Rule instead of Debug Rule.
Our example rule expects two inputs: a string called Email Address and a Boolean called Can Use Portal. Our rule is set up to evaluate these inputs against the following conditions:
- Does Email Address belong to the “yahoo” domain – which is to say, does it contain the string “yahoo.com?”
- Is CanUsePortal set to “true?”
If both inputs satisfy their respective conditions, the rule will return an outcome of “true.” If either or both inputs do not satisfy their respective conditions, the rule will return an outcome of “false.”
Our debugger’s first action is to prompt us for inputs.
Set the Can Use Portal parameter to “true” by checking the box
and we will supply an email address of email@example.com before clicking Run to begin our debugging session.
Because our inputs satisfy both conditions of our rule, the debugger returns a value of True.
The debugger also displays its results as a graph under the Graph View tab.
For a more granular view, the Data tab shows us detailed data about each condition (or step) of our rule.