Configure Rules
  • 09 Oct 2024
  • 1 Minute to read
  • Dark
    Light

Configure Rules

  • Dark
    Light

Article summary

Overview

For Rules, there are various settings we can configure that can affect the outcome for these elements in Decisions. These settings can be found in the Properties panel in the Rule Designer



Available Rule Settings

Default

Available only for Statement Rules. This setting is used to configure the behavior type for Statement Rules, changing how they interact with other Decisions Elements, such as Forms. Below is a list of possible behaviors.

Behavior TypeFunction
Form Rule [Validation/Visibility]Rule behavior for use with Forms to show/hide components, enable/disable fields, or provide custom validation for a form. This rule behavior will only evaluate as true or false.
Missing Evaluation on FalseRemoves the false outcome for a Rule.
Rule Extension [Statement Rule]Allows the creation of custom rule verbs that can be embedded into another Rule using the Rule Designer.
Statement RuleThe default behavior for a Rule.

Service Settings

Used to determine whether a Rule can be called externally as a service.

Integration TypeFunction
NoneDisables the ability to call a Rule via API 
API ServiceEnables the Rule to be called via API

Input

SettingFunction
Specify Default ParametersAllows the creation of a default sample set to be used by the Rule.

Output

Output covers the Evaluation paths that can be enabled for a Rule.

SettingFunction
Allow ActionsAllows the use of actions as outcomes for Statement Rules, Rule Sets, and Truth Tables
Show Else ResultAvailable for Statement Rules and enabled by default. Creates an outcome path for the Rule if the Rule evaluates as false 
Show Missing ResultAvailable for Statement Rules. Creates a new outcome path for the rule to take if data is missing from the input 

Settings

The Settings category is used for enabling or disabling a Rule. 

Enabled

Option ParameterDescription
EnabledInitially enabled by default. If disabled, a log message will be recorded, informing the user that the Rule has been disabled.
Use Enabled RulesEnables the Rule based on the evaluation of another Rule.
Begin DateOptional setting which controls when the Rule can be enabled. Used to set when the Rule will be enabled 
End DateOptional setting which controls when the Rule can be enabled. Used to set when the Rule will be disabled.

Statistics

SettingDescription
Capture StatisticsEnables the use and capturing of execution statistics for a Rule. This can prove useful when recording how often certain Rules are called via API.

Unit Tests

SettingDescription
Run ActionsAvailable only for Statement Rules. Enables the use of Rule Actions for unit tests and debugging.

For further information on Rules, visit the Decisions Forum.



Was this article helpful?