<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7651.59">
<TITLE>mismatched token</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Arial">Hi All,</FONT>
</P>

<P><U><B><FONT COLOR="#000000" SIZE=2 FACE="Courier New">This is the DRL</FONT></B></U><B></B>
</P>

<P><FONT COLOR="#000000" SIZE=2 FACE="Courier New">package com.gs.fw.intauto.entitle.rule.facts</FONT>

<BR><FONT COLOR="#000000" SIZE=2 FACE="Courier New">import com.gs.fw.intauto.entitle.rule.facts.PersonFacts;</FONT>

<BR><FONT COLOR="#000000" SIZE=2 FACE="Courier New">expander entitlement.dsl</FONT>
</P>

<P><FONT COLOR="#000000" SIZE=2 FACE="Courier New">rule &quot;Black Berry Rule 1&quot;</FONT>
</P>

<P><FONT COLOR="#000000" SIZE=2 FACE="Courier New">salience 1</FONT>

<BR><FONT COLOR="#000000" SIZE=2 FACE="Courier New">when</FONT> 

<BR><FONT COLOR="#000000" SIZE=2 FACE="Courier New">Employee with attribs</FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT COLOR="#000000" SIZE=2 FACE="Courier New">- Type is 'Worker'</FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT COLOR="#000000" SIZE=2 FACE="Courier New">- Department is 'Internal Automation'</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" SIZE=2 FACE="Courier New">then</FONT> 

<BR><FONT COLOR="#000000" SIZE=2 FACE="Courier New">Log : &quot;Entitled&quot;</FONT>
</P>

<P><U><B><FONT COLOR="#000000" SIZE=2 FACE="Courier New">This is The DSL</FONT></B></U>
</P>

<P><FONT SIZE=2 FACE="Courier New">[when]Employee with attribs=PersonFacts()</FONT>

<BR><FONT SIZE=2 FACE="Courier New">[when]- Type is '{type}'=type=='{type}'</FONT>

<BR><FONT SIZE=2 FACE="Courier New">[when]- Department is '{department}'=department=='{department}'</FONT>

<BR><FONT SIZE=2 FACE="Courier New">[when]- Division is '{division}'=division=='{division}'</FONT>

<BR><FONT SIZE=2 FACE="Courier New">[when]- City is '{city}'=city=='{city}'</FONT>

<BR><FONT SIZE=2 FACE="Courier New">[when]- User is '{kebrosId}'=kebrosId=='{kebrosId}'</FONT>

<BR><FONT SIZE=2 FACE="Courier New">[then]Log : &quot;{message}&quot;=System.out.println(&quot;{message}&quot;);</FONT>
</P>
<BR>

<P><FONT SIZE=2 FACE="Courier New">I am getting the following error</FONT>

<BR><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">org.drools.rule.InvalidRulePackage: unknown:1:34 mismatched token: [@12,34:37='rule',&lt;30&gt;,1:34]; expecting type ID</FONT>

<BR><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">unknown:2:33 mismatched token: [@28,79:82='rule',&lt;30&gt;,2:33]; expecting type ID</FONT>

<BR><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">unknown:9:0&nbsp; Unable to expand: Employee with attribs. Due to Expression was not expandable: Employee with attribs</FONT>

<BR><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">unknown:10:0&nbsp; Unable to expand: - Type is 'Worker'. Due to Expression was not expandable: - Type is 'Worker'</FONT>

<BR><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">unknown:11:0&nbsp; Unable to expand: - Department is 'Internal Automation'. Due to Expression was not expandable: - Department is 'Internal Automation'</FONT></P>

<P><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">unknown:10:2 Unexpected token ','</FONT>

<BR><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">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" SIZE=2 FACE="Courier New">unknown:23:0&nbsp; Unable to expand: Employee with attribs. Due to Expression was not expandable: Employee with attribs</FONT>

<BR><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">unknown:26:0&nbsp; Unable to expand: - Division is 'Financial Division'. Due to Expression was not expandable: - Division is 'Financial Division'</FONT></P>

<P><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">unknown:27:0&nbsp; Unable to expand: - City is 'New York'. Due to Expression was not expandable: - City is 'New York'</FONT>

<BR><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">unknown:24:2 Unexpected token ','</FONT>

<BR><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">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 SIZE=2 FACE="Courier New">I don't see any thing wrong with the DRL and DSL</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New">Can someone help mw with this..</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New">Thanks in advance</FONT>

<BR><FONT SIZE=2 FACE="Courier New">Sandeep.</FONT>
</P>
<BR>

</BODY>
</HTML>