<div dir="ltr"><br> The error message indicates you are using DSL and the problem is not in the DRL, but in DSL.<br> DSL requires every single line to be "matches" (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 ">".<br>
<br> Best way to fix your problem is to use the drools eclipse plugin for .dslr files, and using the DRL preview feature.<br><br> []s<br> Edson<br><br><div class="gmail_quote">2008/8/8 Yu Wang <span dir="ltr"><<a href="mailto:yuwarm@gmail.com">yuwarm@gmail.com</a>></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 "or" work. I have the following rule:<br>
<br>
<br>
rule<br>
when<br>
(<br>
or<br>
Condition_clause_1<br>
Condition_clause_2<br>
)<br>
then<br>
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: ( [5]<br>
Unable to expand: or [8] Unable to expand: )<br>
<br>
Seems it doesn't recognize "(", "or", and ")". 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>