You can&#39;t be much worse off if you add &quot;package foo&quot; to the template.<br>Or is there a problem with this obvious workaround?<br>-W<br><br><div class="gmail_quote">On 27 August 2010 18:25, drdaveg <span dir="ltr">&lt;<a href="mailto:drdaveg@gmail.com">drdaveg@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
I am trying to incorporate several templates in a single output drl file.<br>
According to the 5.0.1 docs &quot;package&quot; is optional:<br>
<br>
Example 5.3. Rule template file: templates<br>
template header<br>
parameter-name-1<br>
...<br>
parameter-name-n<br>
package ... # optional<br>
<br>
However, it seems that the drools parser uses &quot;package&quot; as a keyword to<br>
identify when it has passed header information.  Not having a &quot;package&quot;<br>
specifier in either 5.0.1 or 5.1.1 yields:<br>
<br>
java.lang.IllegalArgumentException: value rule &quot;rules for reject non-header<br>
@{id}&quot; is not a valid column definition<br>
        at<br>
org.drools.template.parser.ColumnFactory.getColumn(ColumnFactory.java:34)<br>
<br>
which cannot be overcome by tricks like<br>
<br>
// package a.b.c<br>
or<br>
#  package a.b.c<br>
<br>
Are other people experiencing this?  Is there a fix planned for the parser?<br>
<font color="#888888"><br>
<br>
--<br>
View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/Template-bug-on-package-keyword-tp1374638p1374638.html" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/Template-bug-on-package-keyword-tp1374638p1374638.html</a><br>

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>
</font></blockquote></div><br>