on 2017 Jul 11 12:27 AM
In the Drools documentation, Chapter 5. The Rule Language, it indicates the following:
Variables can be bound to facts and their fields and then used in subsequent Field Constraints. A bound variable is called a Declaration. Valid operators are determined by the type of the field being constrained; coercion will be attempted where possible. Bound Variable Restrictions using the operator '==' provide for very fast execution as we can use hashing to improve performance.
This would allow for rules such as:
VariantProductRAO($v5 : baseProductCode)
ProductRAO(code == $v5)
Is this possible with the RuleIrCondition and the DroolsRuleConditionsGenerator?
Request clarification before answering.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.