Re: [rules-users] Best way to write a rule where pattern has multiple constraints

2012-04-18 Thread larryc
Vincent and Wolfgang, thanks for for clearing things up for me. The first approach is definitely not what we want and I now see how this could potentially cause issues. In fact we'll probably need to re-evaluate how some of our rules are written. - Larry -- View this message in context: http:

Re: [rules-users] Best way to write a rule where pattern has multiple constraints

2012-04-18 Thread Wolfgang Laun
Vincent has answered this very well. I'd just like to point out that you might read a verbal interpretation of the conditions to yourself, and judge for yourself. (a) When there is a RuleContect where the billingSystem equals "ABC" and there is a RuleContext where the policyStatus is equals "activ

Re: [rules-users] Best way to write a rule where pattern has multiple constraints

2012-04-18 Thread Vincent LEGENDRE
ill not clear) - Mail original - De: "larryc" À: rules-users@lists.jboss.org Envoyé: Mercredi 18 Avril 2012 18:15:09 Objet: [rules-users] Best way to write a rule where pattern has multiple constraints I was reviewing some of our DRLs and noticed some rules written like thi

[rules-users] Best way to write a rule where pattern has multiple constraints

2012-04-18 Thread larryc
I was reviewing some of our DRLs and noticed some rules written like this: when RuleContext(billingSystem == "ABC") RuleContext(policyStatus == "active") RuleContext(renewalDueDate != null) then ... while others were written this way: when RuleContext(billingSystem == "ABC", policySt