cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Is Drools DRL Bound Variable Restriction Possible with the DefaultDroolsRuleConditionsGenerator?

former_member348752
Participant
0 Kudos
259

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?

Accepted Solutions (0)

Answers (0)