<br>&nbsp;&nbsp; This is a keyword clash and was fixed in trunk and in the 3.0.7 version (still not released, so you need to download the 3.0.x branch and build it if you want it).<br><br>&nbsp;&nbsp;&nbsp; The only workaround while you don&#39;t update to one of these versions is to refactor your package name to NOT use keywords (like &#39;rule&#39;).
<br><br>&nbsp;&nbsp;&nbsp; []s<br>&nbsp;&nbsp;&nbsp; Edson<br><br><br><div><span class="gmail_quote">2007/4/18, Kolla, Sandeep &lt;<a href="mailto:Sandeep.Kolla@gs.com">Sandeep.Kolla@gs.com</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">







<div>


<p><font face="Arial" size="2">Hi All,</font>
</p>

<p><u><b><font color="#000000" face="Courier New" size="2">This is the DRL</font></b></u><b></b>
</p>

<p><font color="#000000" face="Courier New" size="2">package com.gs.fw.intauto.entitle.rule.facts</font>

<br><font color="#000000" face="Courier New" size="2">import com.gs.fw.intauto.entitle.rule.facts.PersonFacts;</font>

<br><font color="#000000" face="Courier New" size="2">expander entitlement.dsl</font>
</p>

<p><font color="#000000" face="Courier New" size="2">rule &quot;Black Berry Rule 1&quot;</font>
</p>

<p><font color="#000000" face="Courier New" size="2">salience 1</font>

<br><font color="#000000" face="Courier New" size="2">when</font> 

<br><font color="#000000" face="Courier New" size="2">Employee with attribs</font>

<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color="#000000" face="Courier New" size="2">- Type is &#39;Worker&#39;</font>

<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color="#000000" face="Courier New" size="2">- Department is &#39;Internal Automation&#39;</font>

<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 

<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 

<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 

<br><font color="#000000" face="Courier New" size="2">then</font> 

<br><font color="#000000" face="Courier New" size="2">Log : &quot;Entitled&quot;</font>
</p>

<p><u><b><font color="#000000" face="Courier New" size="2">This is The DSL</font></b></u>
</p>

<p><font face="Courier New" size="2">[when]Employee with attribs=PersonFacts()</font>

<br><font face="Courier New" size="2">[when]- Type is &#39;{type}&#39;=type==&#39;{type}&#39;</font>

<br><font face="Courier New" size="2">[when]- Department is &#39;{department}&#39;=department==&#39;{department}&#39;</font>

<br><font face="Courier New" size="2">[when]- Division is &#39;{division}&#39;=division==&#39;{division}&#39;</font>

<br><font face="Courier New" size="2">[when]- City is &#39;{city}&#39;=city==&#39;{city}&#39;</font>

<br><font face="Courier New" size="2">[when]- User is &#39;{kebrosId}&#39;=kebrosId==&#39;{kebrosId}&#39;</font>

<br><font face="Courier New" size="2">[then]Log : &quot;{message}&quot;=System.out.println(&quot;{message}&quot;);</font>
</p>
<br>

<p><font face="Courier New" size="2">I am getting the following error</font>

<br><font color="#ff0000" face="Courier New" size="2">org.drools.rule.InvalidRulePackage: unknown:1:34 mismatched token: [@12,34:37=&#39;rule&#39;,&lt;30&gt;,1:34]; expecting type ID</font>

<br><font color="#ff0000" face="Courier New" size="2">unknown:2:33 mismatched token: [@28,79:82=&#39;rule&#39;,&lt;30&gt;,2:33]; expecting type ID</font>

<br><font color="#ff0000" face="Courier New" size="2">unknown:9:0&nbsp; Unable to expand: Employee with attribs. Due to Expression was not expandable: Employee with attribs</font>

<br><font color="#ff0000" face="Courier New" size="2">unknown:10:0&nbsp; Unable to expand: - Type is &#39;Worker&#39;. Due to Expression was not expandable: - Type is &#39;Worker&#39;</font>

<br><font color="#ff0000" face="Courier New" size="2">unknown:11:0&nbsp; Unable to expand: - Department is &#39;Internal Automation&#39;. Due to Expression was not expandable: - Department is &#39;Internal Automation&#39;</font>
</p>

<p><font color="#ff0000" face="Courier New" size="2">unknown:10:2 Unexpected token &#39;,&#39;</font>

<br><font color="#ff0000" face="Courier New" size="2">unknown:16:0&nbsp; Unable to expand: Log : &quot;Entitled&quot;. Due to Expression was not expandable: Log : &quot;Entitled&quot;</font>

<br><font color="#ff0000" face="Courier New" size="2">unknown:23:0&nbsp; Unable to expand: Employee with attribs. Due to Expression was not expandable: Employee with attribs</font>

<br><font color="#ff0000" face="Courier New" size="2">unknown:26:0&nbsp; Unable to expand: - Division is &#39;Financial Division&#39;. Due to Expression was not expandable: - Division is &#39;Financial Division&#39;</font></p>


<p><font color="#ff0000" face="Courier New" size="2">unknown:27:0&nbsp; Unable to expand: - City is &#39;New York&#39;. Due to Expression was not expandable: - City is &#39;New York&#39;</font>

<br><font color="#ff0000" face="Courier New" size="2">unknown:24:2 Unexpected token &#39;,&#39;</font>

<br><font color="#ff0000" face="Courier New" size="2">unknown:30:0&nbsp; Unable to expand: Log : &quot;Not Entitled&quot;. Due to Expression was not expandable: Log : &quot;Not Entitled&quot;</font>

<br><font face="Courier New" size="2">I don&#39;t see any thing wrong with the DRL and DSL</font>
</p>

<p><font face="Courier New" size="2">Can someone help mw with this..</font>
</p>

<p><font face="Courier New" size="2">Thanks in advance</font>

<br><font face="Courier New" size="2">Sandeep.</font>
</p>
<br>

</div>
<br>_______________________________________________<br>rules-dev mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">
https://lists.jboss.org/mailman/listinfo/rules-dev</a><br><br></blockquote></div><br><br clear="all"><br>-- <br>&nbsp;&nbsp;Edson Tirelli<br>&nbsp;&nbsp;Software Engineer - JBoss Rules Core Developer<br>&nbsp;&nbsp;Office: +55 11 3529-6000<br>&nbsp;&nbsp;Mobile: +55 11 9287-5646
<br>&nbsp;&nbsp;JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a>