[rules-users] 'not exist' and decision tables

Yoni Mazar y.mazar at gmail.com
Wed Jul 30 04:14:27 EDT 2008


Hi all,
We are trying to express the following business logic: "IF there is no
LabEvent of type <T> in the last <N> days THEN raise an alert". 
Where <T> and <N> are:
"INR", 7
"CBC", 14
"AST", 30 
etc.
writing this in DRL will be something like:
when not exist ( LabEvent(type==T && eval(inLastNDays(date,N)))) 

On first look, this looks as a classical decision table. Each column in a DT
is a field constraint. But, where can we write the 'not exist'  expression?

In addition, is there an easy way to see the rules (in DRL) generated from a
DT?

Thanks for the help, Yoni
-- 
View this message in context: http://www.nabble.com/%27not-exist%27-and-decision-tables-tp18728156p18728156.html
Sent from the drools - user mailing list archive at Nabble.com.




More information about the rules-users mailing list