<div dir="ltr"><br>&nbsp;&nbsp; The error message indicates you are using DSL and the problem is not in the DRL, but in DSL.<br>&nbsp;&nbsp; DSL requires every single line to be &quot;matches&quot; (or expanded), so if you have a line with a single ( and nothing more, either you have a mapping for it, or you escape the line with &quot;&gt;&quot;.<br>
<br>&nbsp;&nbsp; Best way to fix your problem is to use the drools eclipse plugin for .dslr files, and using the DRL preview feature.<br><br>&nbsp;&nbsp; []s<br>&nbsp;&nbsp; Edson<br><br><div class="gmail_quote">2008/8/8 Yu Wang <span dir="ltr">&lt;<a href="mailto:yuwarm@gmail.com">yuwarm@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi, I need help in making the &quot;or&quot; work. I have the following rule:<br>
<br>
<br>
rule<br>
when<br>
(<br>
or<br>
 &nbsp; &nbsp; &nbsp; &nbsp; Condition_clause_1<br>
 &nbsp; &nbsp; &nbsp; &nbsp; Condition_clause_2<br>
)<br>
then<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Consequence_clause_1<br>
end<br>
<br>
-------------<br>
<br>
It gives me the following compilation error:<br>
<br>
org.drools.rule.InvalidRulePackage: [4] Unable to expand: ( &nbsp;[5]<br>
Unable to expand: or &nbsp; &nbsp;[8] Unable to expand: )<br>
<br>
Seems it doesn&#39;t recognize &quot;(&quot;, &quot;or&quot;, and &quot;)&quot;. But I totally follow<br>
the documentation on section <a href="http://6.5.2.3" target="_blank">6.5.2.3</a> of version <a href="http://4.0.7." target="_blank">4.0.7.</a><br>
<br>
<br>
Any help is highly appreciated.<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>
</blockquote></div><br><br clear="all"><br>-- <br> Edson Tirelli<br> JBoss Drools Core Development<br> JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>
</div>