<br> That syntax was deprecated. Use "or" and "and" between patterns, and use "&&" and "||" inside patterns between constraints. Also, the single binding for "or" uses () if I am not mistaken:<br>
<br>core : ( BWCore(systemId == "1" ) or<br> BWCore(systemId == "2" ) or<br> BWCore(systemId == "3") )<br><br> Finally, although that was the way to do it in Drools 3, it is terribly inefficient compared to the Drools 4/5 constraint connectives. The same condition above should be re-written in one of the following, much more efficient, ways:<br>
<br>core : BWCore( systemId in ("1", "2", "3" ) )<br>
core : BWCore( systemId == "1" || == "2" || == "3" )<br>
core : BWCore( systemId == "1" || systemId == "2" || systemId == "3" )<br>
<br> []s<br> Edson<br><br><br><div class="gmail_quote">2010/3/24 Nars <span dir="ltr"><<a href="mailto:narayanan.anantharaman@citi.com">narayanan.anantharaman@citi.com</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
To add more to the above, the error comes only when we bind the matched<br>
object and use it in consequence. If we do not use the matched object in<br>
consequence, it works fine.<br>
<font color="#888888">--<br>
View this message in context: <a href="http://n3.nabble.com/Drools-upgrade-from-3-to-5-OR-syntax-tp471205p471332.html" target="_blank">http://n3.nabble.com/Drools-upgrade-from-3-to-5-OR-syntax-tp471205p471332.html</a><br>
</font><div><div></div><div class="h5">Sent from the Drools - User mailing list archive at Nabble.com.<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" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br> Edson Tirelli<br> JBoss Drools Core Development<br> JBoss by Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>