[rules-users] Partial match (best rule to fire)

Houssam Haitof h_haitof at yahoo.com
Tue Feb 12 10:09:01 EST 2008


Hi, I need to know if a there is a possibility to have a partial match for a rule. For instance, let's concider rule 1:


rule "rule 1" 

when

    o : MyObject(field1=="A" && field2=="B" && field3=="C") 
then

    //
end

I have a MyObject with values ("A", "B", "X") that would normally not match the rule. 
Is there a way to have a partial match? Something like "rule 1 matches at 66%" ?
My aim is to find the best rule to fire, the one that has the highest partial matches.

Thank you in advance.
Houssam

P.S: I can't break rule 1 into multiple rules because I have a large number of "fieldsN".




      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20080212/d1b38078/attachment.html 


More information about the rules-users mailing list