A redirectedrule is a circumstance-qualified rule that is configured to reference another circumstance-qualified rule for the same base rule. PROJ-229 GENTJ 5.3 This capability allows one rule to "forward" to another.
During rule resolution processing at runtime, if rule resolution initially selects a redirected rule, the system instead accesses the target of the redirection, and the that second rule runs. (If the target is not found, the base rule runs.) The system ignores all fields on the redirected rule form other than the redirection details and the rule name.
Redirection is available for three rule types in the Decision category:
Redirection can simplify maintenance of a set of circumstance-qualified rules. For example, an application may include a decision tree named SalesTax that computes state sales taxes for a state, and is circumstanced by state code, such as VA for Virginia.
Your application needs one base rule and 50 circumstance-qualified rules, one for each state code. However, if the tax structure of several states (such as Alaska, Delaware, Florida, Montana, and New Hampshire) is identical, you can:
Redirection does not reduce the number of circumstance-qualified rules you need to create, but it can reduce your maintenance effort when several of them operate alike (that is, are functionally equivalent).
The target of a redirected rule can be another redirected rule.
You can't redirect a rule to itself. Use care to avoid creating a circular set of redirections (A to B and B to A), as doing so causes an exception at runtime.
base rule, circumstance | |
About
Decision Table rules About Decision Tree rules About Map Value rules |