If condition 1 column is left blank, this could be achieved.
On Tue, Jul 12, 2011 at 11:56 AM, Syargey <Syargey(a)tut.by> wrote:
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-c...
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users