Configure Rules
- 27 Jul 2022
- 1 Minute to read
- Print
- DarkLight
Configure Rules
- Updated on 27 Jul 2022
- 1 Minute to read
- Print
- DarkLight
Article summary
Did you find this summary helpful?
Thank you for your feedback
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 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 the creation of custom rule verbs that can be embedded into another Rule using the Rule Designer. |
Statement Rule | The default behavior for a Rule. |
Service Settings
Used to determine whether a Rule can be called externally as a service.
Integration Type | Function |
---|---|
None | Disables the ability to call a Rule via API |
API Service | Enables the Rule to be called via API |
Input
Setting | Function |
---|---|
Specify Default Parameters | Allows 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.
Setting | Function |
---|---|
Allow Actions | Allows the use of actions as outcomes for Statement Rules, Rule Sets, 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
The Settings category is used for enabling or disabling a Rule.
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. |
Begin Date | Optional setting which controls when the Rule can be enabled. Used to set when the Rule will be enabled |
End Date | Optional setting which controls when the Rule can be enabled. Used to set when the Rule will be disabled. |
Statistics
Setting | Description |
---|---|
Capture 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. |
Unit Tests
Setting | Description |
---|---|
Run Actions | Available 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?