Conditions Editor
The Conditions Editor allows you to create and edit rule conditions. Each condition contains the same fields:
- Name—The name of the condition.
- Language Expression—The plain language expression of the condition that the rule author sees when constructing a business rule in the Rule Authoring tab.
- Rule Language Mapping—The condition expressed in code. See Rule Language Mapping for more information.
When configuring conditions, parameters can be used in the Rule Language Mapping and Language Expression. For example, the Condition Age Range may be configured as follows:
- Name—Age Range
- Language Expression—Customer's age is between "{ageLow}" and "{ageHigh}"
- Rule Language Mapping—Customer(age >= '{ageLow}' && age <= '{ageHigh}')
In this example, {ageLow} and {ageHigh} are parameters.
Conditions in Linear Rules
For a linear rule, there is a maximum limit 6 columns of parameter data (including static text labels). So, for example, if your expression is:
Set customer data to: {parm1} and {parm2} and {parm3} and {parm4}
In this case, {parm4}, as the 7th parameter, will not be displayed. Reword your conditions to fit within these boundaries.
Warning
When configuring a condition for an “operational parameter”, it is important that you do not enclose the variable in either double or single quotes in either the language expression or the rule language mapping. See the example here. This page was last edited on August 30, 2019, at 20:05.
Comments or questions about this documentation? Contact us for support!