Dependent Rule Sets
Rules in dependent rule set are processed out of the order they appear in the rule list.
Processing starts by selecting all rules that point to Final Rule Set Result. Conditions of such rule(s) are calculated first, and the list of active final result rules (i.e. rules that have no condition or have true condition) is formed:
- If obtained final result rule list has more than one rule, rule set processing fails with Found multiple active rules to calculate the final result error.
- If obtained final result rule list has no rules, rule set processing fails with Found no active rules to calculate the final result error.
If a single active final result rule is found, its Expression is calculated.
Dependent Rule Processing
If any rule Expression refers one or more environment variables, it is said to depend on other rules. To get result of those rule(s), the system founds all active (i.e. no/true condition) rules those target points to this variable. Rule set processing fails if zero or more than one rule is found (see above). If a single rule is found, it's Expression is calculated. This expression may recursively refer to the result of other rules.
Was this page helpful?