[rules-users] decision tables and default rules for case when part of LHS failes for other rules
Syargey
Syargey at tut.by
Tue Jul 12 11:56:45 EDT 2011
Hi all,
I have been asked to add default rules to a decision table.
We have a decision table with several conditions. Data from first two
columns are passed to action with binded variables. The action collects data
from all passed rules.
-------------------------------------
condition 1 | condition 2 | ... | action
-------------------------------------
AAA | AD | ... | X
-------------------------------------
BBB | AD | ... | X
-------------------------------------
BBB | AE | ... | X
-------------------------------------
BBB | CC | ... | X
-------------------------------------
CCC | AD | ... | X
-------------------------------------
DDD | AD | ... | X
-------------------------------------
BBB | AE | ... | X
-------------------------------------
... | ... | ... | X
-------------------------------------
Recently business asked me if it is possible to have default rules (rows) in
the table if there is not any rule passing condition 1.
-------------------------------------
DEFAULT | AD | ... | X
-------------------------------------
DEFAULT | AE | ... | X
-------------------------------------
Is it possible to have rules in decision table those can be fired only if a
specific part of LHS never occurs in others rules?
Thanks in advance,
Syargey
--
View this message in context: http://drools.46999.n3.nabble.com/decision-tables-and-default-rules-for-case-when-part-of-LHS-failes-for-other-rules-tp3162872p3162872.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
More information about the rules-users
mailing list