- 24 Oct 2022
- 2 Minutes to read
- Print
- DarkLight
Rule Settings Overview
- Updated on 24 Oct 2022
- 2 Minutes to read
- Print
- DarkLight
Overview
For Statement Rules, Truth Tables, and Rulesets, 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 when the associated Rule is opened in the Rule Designer. This article will provide a brief overview of the settings found in the Properties panel.
Default
Available only for Statement Rules. This setting configures the behavior type for a Statement Rule, changing how they interact with other Decisions Elements, such as Forms. Below is a list of possible behaviors for a Statement Rule.
Behavior Type | Function |
---|---|
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 False | Removes the false outcome for a Rule. |
Rule Extension[Statement Rule] | Allows creation of custom Rule verbs that can be embedded into another Rule using the Rule Designer. |
Statement Rule | The default behavior for a created Statement Rule. |
Service Settings
Used to determine whether a Rule can be called externally as a service. For more information, please refer to View Integration Details. Currently, only the API Service is available for Rules, Truth Tables, and Rulesets.
Input
Allows the creation of a default sample set to be used by the Rule. For more information, please refer to About Unit Testing and Debugging for more information on this topic.
Output
Setting | Function |
---|---|
Allow Actions | Allows the use of actions as outcomes for Statement Rules. As of version 7.10, this option is now available for Rulesets and Truth Tables. |
Show Else Result | Available for Statement Rules and enabled by default. Creates an outcome path for the Rule if the Rule evaluates as false |
Show Missing Result | Available for Statement Rules. Creates a new outcome path for the rule to take if data is missing from the input |
Settings
Enabled
Option Parameter | Description |
---|---|
Enabled | Initially enabled by default. If disabled, a log message will be recorded, informing the user that the Rule has been disabled. |
Use Enabled Rules | Enables the Rule based on the evaluation of another Rule. This must be configured for each individual Rule |
Begin Date | Optional setting which controls when the Rule can be enabled in Decisions. Used to set when the Rule will be enabled |
End Date | Optional setting which controls when the Rule can be enabled in Decisions. Used to set when the Rule will be disabled. |
Statistics
Enables the use and capturing of execution statistics for a Rule. This can prove useful when recording how often certain Rules are called via API. For more information on what data was captured, please visit this article on Portal Statistics.
Unit Tests
Available only for Statement Rules. Enables the use of Rule Actions for unit tests and debugging.