<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>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:</span><span>
</span><br><br><span>rule "rule 1"&nbsp;
</span><span></span><br><span>when
</span><br><span>&nbsp;&nbsp;&nbsp; o : MyObject(</span><span>field1=="A" &amp;&amp; </span><span>field2=="B" &amp;&amp; </span><span>field3=="C")</span><span> </span><span></span><br><span>then
</span><br><span>&nbsp; &nbsp; //</span><br><span>end<br><br>I have a MyObject with values ("A", "B", "X") that would normally not match the rule. <br>Is there a way to have a partial match? Something like "rule 1 matches at 66%" ?<br>My aim is to find the best rule to fire, the one that has the highest partial matches.<br><br>Thank you in advance.<br>Houssam<br><br>P.S: I can't break rule 1 into multiple rules because I have a large number of "fieldsN".<br></span></div></div><br>
      <hr size=1>Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile. <a href="http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ "> Try it now.</a></body></html>