Oring conditions
by Waleed Zedan
Hi All,
I have this requirment : Rule A -> Condition 1 AND
(Condition 2 OR
Condition 3 OR
Condition 4)
The problem is that OR (||) operators in drools are not a short circuiting
operators like in Java.
May you please tell me an approach to handle this situation , i have already
tried splitting it on multiple rules ,but i am searching for better
approach.
I am using Drools 4.0.7.
Thanks.
Best Regards,
--
Waleed Zedan
17 years, 7 months
recommend way about same when , different then
by Shigeaki Wakizaka
Hi. I'm newbie to Drools.
I'm just wondering how I define the rules with my web application that has
several layers, web,business-logic,and data access.
one rule is used in the wab layer, and another one is used in the
business-logic layer.
Both rule's "when" are the same, but the "then"(action) is different.
It looks like code dupulication.
(I mean when the "when" changes, every rules that has same "when" has to be
changed, right?)
What's the recommended way in this situation?
thanks
Shige
17 years, 7 months