<br> I recommend you take a look at the manual, and help us improve if it is not clear there. To add constraints to the previous pattern, you must use "-" in the beginning of the mapping.<br> <br> []s<br> Edson
<br><br><div><span class="gmail_quote">2007/9/13, <a href="mailto:kissro@lidp.com">kissro@lidp.com</a> <<a href="mailto:kissro@lidp.com">kissro@lidp.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
In eclipse, I have this coded in a .dsl<br><br>There is a Policy p:Policy()<br>for a male sex = "m"<br>with a premium less than {premium} premium < {premium}
<br>Accept policy p.setStatus(32)<br><br>My .dslr rule file contains this<br><br>rule "Low Premium"<br> when<br> There is a Policy<br> for a male<br>
with a premium less than 50.00<br> then<br> Accept policy<br>end<br><br><br>The .drl view shows this<br><br>rule "Low Premium"<br> when<br> p : Policy()<br> sex = "m"
<br> premium < 50.00<br> then<br> p.setStatus(32);<br>end<br><br><br>I'm getting the error - Unexpected token 'sex'. I tried removing the<br>'for a male' part leaving 'with a premium less than
50.00' but then<br>I get 'Unexpected token 'premium''. How do I code the .dsl and/or .dslr<br>files to get the expected results.<br><br>Thanks,<br><br>Rod<br><br>_______________________________________________
<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users
</a><br></blockquote></div><br><br clear="all"><br>-- <br> Edson Tirelli<br> Software Engineer - JBoss Rules Core Developer<br> Office: +55 11 3529-6000<br> Mobile: +55 11 9287-5646<br> JBoss, a division of Red Hat @
<a href="http://www.jboss.com">www.jboss.com</a>