<br>   That syntax was deprecated. Use &quot;or&quot; and &quot;and&quot; between patterns, and use &quot;&amp;&amp;&quot; and &quot;||&quot; inside patterns between constraints. Also, the single binding for &quot;or&quot; uses () if I am not mistaken:<br>
<br>core : ( BWCore(systemId == &quot;1&quot; ) or<br>           BWCore(systemId == &quot;2&quot; ) or<br>           BWCore(systemId == &quot;3&quot;) )<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 (&quot;1&quot;, &quot;2&quot;, &quot;3&quot;  ) )<br>


core : BWCore( systemId == &quot;1&quot; || == &quot;2&quot; || == &quot;3&quot; )<br>

core : BWCore( systemId == &quot;1&quot; || systemId == &quot;2&quot; || systemId == &quot;3&quot; )<br>

<br>   []s<br>   Edson<br><br><br><div class="gmail_quote">2010/3/24 Nars <span dir="ltr">&lt;<a href="mailto:narayanan.anantharaman@citi.com">narayanan.anantharaman@citi.com</a>&gt;</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>