Ah, yes that is a known problem in 3.0 (which in trunk doesn't exist):<br><br>you have "rule" 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 "rules" 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> <<a href="mailto:Sandeep.Kolla@gs.com">Sandeep.Kolla@gs.com</a>> 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 "Black Berry Rule 1"</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> <font color="#000000" face="Courier New" size="2">- Type is 'Worker'</font>
<br> <font color="#000000" face="Courier New" size="2">- Department is 'Internal Automation'</font>
<br>
<br>
<br>
<br><font color="#000000" face="Courier New" size="2">then</font>
<br><font color="#000000" face="Courier New" size="2">Log : "Entitled"</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 '{type}'=type=='{type}'</font>
<br><font face="Courier New" size="2">[when]- Department is '{department}'=department=='{department}'</font>
<br><font face="Courier New" size="2">[when]- Division is '{division}'=division=='{division}'</font>
<br><font face="Courier New" size="2">[when]- City is '{city}'=city=='{city}'</font>
<br><font face="Courier New" size="2">[when]- User is '{kebrosId}'=kebrosId=='{kebrosId}'</font>
<br><font face="Courier New" size="2">[then]Log : "{message}"=System.out.println("{message}");</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='rule',<30>,1:34]; expecting type ID</font>
<br><font color="#ff0000" face="Courier New" size="2">unknown:2:33 mismatched token: [@28,79:82='rule',<30>,2:33]; expecting type ID</font>
<br><font color="#ff0000" face="Courier New" size="2">unknown:9:0 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 Unable to expand: - Type is 'Worker'. Due to Expression was not expandable: - Type is 'Worker'</font>
<br><font color="#ff0000" face="Courier New" size="2">unknown:11:0 Unable to expand: - Department is 'Internal Automation'. Due to Expression was not expandable: - Department is 'Internal Automation'</font>
</p>
<p><font color="#ff0000" face="Courier New" size="2">unknown:10:2 Unexpected token ','</font>
<br><font color="#ff0000" face="Courier New" size="2">unknown:16:0 Unable to expand: Log : "Entitled". Due to Expression was not expandable: Log : "Entitled"</font>
<br><font color="#ff0000" face="Courier New" size="2">unknown:23:0 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 Unable to expand: - Division is 'Financial Division'. Due to Expression was not expandable: - Division is 'Financial Division'</font></p>
<p><font color="#ff0000" face="Courier New" size="2">unknown:27:0 Unable to expand: - City is 'New York'. Due to Expression was not expandable: - City is 'New York'</font>
<br><font color="#ff0000" face="Courier New" size="2">unknown:24:2 Unexpected token ','</font>
<br><font color="#ff0000" face="Courier New" size="2">unknown:30:0 Unable to expand: Log : "Not Entitled". Due to Expression was not expandable: Log : "Not Entitled"</font>
<br><font face="Courier New" size="2">I don'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>