<br><br> Yuri,<br><br> The syntax with {} is not valid... are you really using that??? or is it just pseudo-code?<br><br> []s<br> Edson<br><br><div><span class="gmail_quote">2007/9/4, Yuri <<a href="mailto:ydewit@gmail.com">
ydewit@gmail.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Consider the following rules:<br><br>rule (1)<br> when<br>
a: Criteria(<br> $criteriaA : criteriaA,<br> $criteriaB : criteriaB )<br><br> b: Criteria(){<br> matchCriteriaA == true && criteriaA == $criteriaA<br> || matchCriteriaB == true && criteriaB == $criteriaB
<br> }<br> then<br> ...<br>end<br><br>rule (2)<br> when<br> a: Criteria(<br> $criteriaA : criteriaA,<br> $criteriaB : criteriaB )<br><br> b: Criteria(){<br> eval(<br> matchCriteriaA == true && criteriaA == $criteriaA
<br> || matchCriteriaB == true && criteriaB == $criteriaB<br> )<br> }<br> then<br> ...<br>end<br><br>I am seeing different behavior for the same test cases. I am basically inserting
<br> "a" and "b" with matching criteriaA and criteriaB and I am testing different<br>combinations of matchCriteriaA and matchCriteriaB (i.e. F/F, F/T, T/F, T/T).<br><br>Results for rule (1):<br>F/F -> rule activated (incorrect)
<br>T/F -> rule activated (correct)<br>F/T -> rule activated (correct)<br><br>Results for rule (2):<br>F/F -> rule activated (incorrect)<br>T/F -> rule activated (correct)<br>F/T -> rule activated (correct)
<br><br>Any ideas?<br><br><br>_______________________________________________<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/rules-users">
https://lists.jboss.org/mailman/listinfo/rules-users</a><br></blockquote></div><br><br clear="all"><br>-- <br> Edson Tirelli<br> Software Engineer - JBoss Rules Core Developer<br> Office: +55 11 3529-6000<br> Mobile: +55 11 9287-5646
<br> JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a>