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 "{status}"=beanObj : XMLDataBean (flavour != "{status}")<br>[then]set the "{Flavour}" dimension.=
beanObj.setDimsAndVals("{Flavour}", beanObj.getFlavour());<br>[then]set the "{language}" dimension to "{kannada}"=beanObj.setDimsAndVals("{language}", "{kannada}");<br>[when]beanobject has a songCode not equal to "{yes}"=beanObj : XMLDataBean (songCode != "{yes}")
<br>[then]set the "{SongCode}" dimension in beanObject=beanObj.setPropsAndVals("{SongCode}", beanObj.getSongCode());<br>[then]set the category to "{category}"=beanObj.setCategory("{category}");
<br>[then]set the "{album}" dimension=beanObj.setDimsAndVals("{album}", beanObj.getMovie());<br>[when]beanObject has a dimension "{dimension}"=beanObj : XMLDataBean("{dimension}")<br>
[when]beanObject has a "{category}"=beanObj : XMLDataBean ("{category}")<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 "catgy rule 1"<br> agenda-group "cat";<br> when<br> beanObject has a "category"<br> then <br> set the category to "Regional"
<br>end<br><br>rule "dim rule 1"<br> agenda-group "dimension";<br> when<br> beanObject has a dimension "movie"<br> then <br> set the "Album-Movie" dimension<br>
end<br><br>rule "dim rule 2"<br> agenda-group "dimension";<br> when<br> beanObject has a flavour not equal to "NA" <br> then <br> set the "Flavour" dimension
<br>end<br><br>rule "dim rule 3"<br> agenda-group "dimension";<br> when<br> beanObject has a dimension "language"<br> then <br> set the "Language" dimension to "Kannada"
<br>end<br><br>rule "property rule 1"<br> agenda-group "dimension";<br> when<br> beanobject has a songCode not equal to "Y" <br> then <br> set the "Song Code" dimension in beanObject
<br>end<br><br>I tried to compile the drl file but it gives errors: <br><br>Unexpected token "category"<br>Unexpected token "movie"<br>Unexpected token "language"<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>