Ah, yes that is a known problem in 3.0 (which in trunk doesn&#39;t exist):<br><br>you have &quot;rule&quot; in your package name:<br><br><br><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><br>Refactor it to be &quot;rules&quot; and it will go away, its a problem with keyword collisions. The parser is quite different in the trunk version to avoid that problem.<br><br>Michael.<br><br><div><span class="gmail_quote">
On 4/19/07, <b class="gmail_sendername">Kolla, Sandeep</b> &lt;<a href="mailto:Sandeep.Kolla@gs.com">Sandeep.Kolla@gs.com</a>&gt; wrote:</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-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">
https://lists.jboss.org/mailman/listinfo/rules-users</a><br><br></blockquote></div><br>