RULES ( Collection of RULEs )
Defines a single rule within the RULES section. A rule consists of conditional logic expressed using WHEN clauses and resulting actions defined in THEN clauses. Rules may include metadata such as priority and category to influence evaluation order and grouping.
Properties of RULES
| Name | Type | Description |
| Title | STRING | |
| Enabled | BOOLEAN | Controls whether the item participates in evaluation. Enabled by default; |
| Priority | DECIMAL | Defines the relative priority during evaluation. Higher priority may be evaluated earlier or override lower priority rules. |
| Weight | DECIMAL | Optional weight used to influence priority or contribution during evaluation. |
| Items | LIST`1 | |
Properties of RULE
| Name | Type | Description |
| Title | STRING | The unique name or title of the rule. |
| Enabled | BOOLEAN | Controls whether the rule participates in evaluation. Rules are enabled by default; |
| Weight | DECIMAL | Optional rule weight used to influence priority or contribution during rule evaluation. |
| Priority | DECIMAL | Defines the relative priority of the rule during evaluation. Higher priority rules may be evaluated earlier or override lower priority rules. |
| Action | STRING | The decision outcome this rule contributes toward.
The action represents a directional intent or classification target and is not executed directly.
During evaluation, multiple rules may contribute to the same action with varying confidence. |
Examples
MODULE
GLOBALMODEL 'CustomerRiskModel - Global'
RULES
RULE DefaultRisk
WHEN
RiskScore > 0
THEN
Action = Review
MODEL 'CustomerRiskModel'
RULES
RULE Risk
WHEN
RiskScore > 1000
THEN
Action = Call MANAGER
MODULE
MODEL
RULES
RULE EscalateHighRiskCustomer
Priority = 10
Category = 'Risk'
WHEN
SentimentScore < -8
AND IssueSeverityScore >= 3
THEN
Action = Escalate
DEFAULTACTION
StandardResponse