hi,<br><br>I wrote the follwoing dsl file:<br><br>#trying a new way of writing.<br>[when]beanObject has a flavour not equal to &quot;{status}&quot;=beanObj : XMLDataBean (flavour&nbsp; != &quot;{status}&quot;)<br>[then]set the &quot;{Flavour}&quot; dimension.=
beanObj.setDimsAndVals(&quot;{Flavour}&quot;, beanObj.getFlavour());<br>[then]set the &quot;{language}&quot; dimension to &quot;{kannada}&quot;=beanObj.setDimsAndVals(&quot;{language}&quot;, &quot;{kannada}&quot;);<br>[when]beanobject has a songCode not equal to &quot;{yes}&quot;=beanObj : XMLDataBean (songCode&nbsp; != &quot;{yes}&quot;)
<br>[then]set the &quot;{SongCode}&quot; dimension in beanObject=beanObj.setPropsAndVals(&quot;{SongCode}&quot;, beanObj.getSongCode());<br>[then]set the category to &quot;{category}&quot;=beanObj.setCategory(&quot;{category}&quot;);
<br>[then]set the &quot;{album}&quot; dimension=beanObj.setDimsAndVals(&quot;{album}&quot;, beanObj.getMovie());<br>[when]beanObject has a dimension &quot;{dimension}&quot;=beanObj : XMLDataBean(&quot;{dimension}&quot;)<br>
[when]beanObject has a &quot;{category}&quot;=beanObj : XMLDataBean (&quot;{category}&quot;)<br>[when]set language=beanObj : XMLDataBean(language)<br><br>and the corresponding drl file is:<br><br>import com.dataBean.XMLDataBean
; <br>expander bollywood.dsl<br><br>rule &quot;catgy rule 1&quot;<br>&nbsp;&nbsp;&nbsp; agenda-group &quot;cat&quot;;<br>&nbsp;&nbsp;&nbsp; when<br>&nbsp;&nbsp;&nbsp; beanObject has a &quot;category&quot;<br>&nbsp;&nbsp;&nbsp; then <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; set the category to &quot;Regional&quot;
<br>end<br><br>rule &quot;dim rule 1&quot;<br>&nbsp;&nbsp;&nbsp; agenda-group &quot;dimension&quot;;<br>&nbsp;&nbsp;&nbsp; when<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; beanObject has a dimension &quot;movie&quot;<br>&nbsp;&nbsp;&nbsp; then <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; set the &quot;Album-Movie&quot; dimension<br>
end<br><br>rule &quot;dim rule 2&quot;<br>&nbsp;&nbsp;&nbsp; agenda-group &quot;dimension&quot;;<br>&nbsp;&nbsp;&nbsp; when<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; beanObject has a flavour not equal to &quot;NA&quot;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; then <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; set the &quot;Flavour&quot; dimension
<br>end<br><br>rule &quot;dim rule 3&quot;<br>&nbsp;&nbsp;&nbsp; agenda-group &quot;dimension&quot;;<br>&nbsp;&nbsp;&nbsp; when<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; beanObject has a dimension &quot;language&quot;<br>&nbsp;&nbsp;&nbsp; then <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; set the &quot;Language&quot; dimension to &quot;Kannada&quot;
<br>end<br><br>rule &quot;property rule 1&quot;<br>&nbsp;&nbsp;&nbsp; agenda-group &quot;dimension&quot;;<br>&nbsp;&nbsp;&nbsp; when<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; beanobject has a songCode not equal to &quot;Y&quot;&nbsp;&nbsp;&nbsp; &nbsp;<br>&nbsp;&nbsp;&nbsp; then <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; set the &quot;Song Code&quot; dimension in beanObject
<br>end<br><br>I tried to compile the drl file but it gives errors: <br><br>Unexpected token &quot;category&quot;<br>Unexpected token &quot;movie&quot;<br>Unexpected token &quot;language&quot;<br><br>I have gone through some sample applications but looking at the above errors am having no clue why these compilation errors are happening. Please help.
<br clear="all"><br>-- <br>Parit Bansal<br>Graduate Student<br>DhiruBhai Ambani Institute Of Information and Communication Technology<br>Gandhinagar- 382007 India<br>Email: <a href="mailto:parit.bansal@gmail.com">parit.bansal@gmail.com
</a><br>Web: <a href="http://www.guptalab.org/paritbansal/">http://www.guptalab.org/paritbansal/</a>