<br> This is a bug in the DSL engine. May I ask you please to submit a JIRA for it?<br><br> Meanwhile, I advise you to avoid eval, since it is more performant and more clear to use regular constraints. The following grammar entries are equivalent to yours, but much more performant:
<br><br>[when]- Title equals "{value}"=title == "{value}"<br>[when]- Event equals "{value}"=id == "{value}"<br><br> []s<br> Edson<br><br><div><span class="gmail_quote">2007/10/8, Markus Helbig <
<a href="mailto:mhelbig81@googlemail.com">mhelbig81@googlemail.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;">Hi,<br>given the following DSL
<br><br><br>[when]of type Item=Item()<br>[when]- Title equals "{value}"=eval(title.isEqual("{value}")<br>[when]- Event equals "{value}"=eval(id.isEqual("{value}")<br>[then]Log : "{message}"=
System.out.println("{message}");<br><br><br><br>the dslr File:<br><br>expander Test.dsl<br><br>rule "Your First Rule"<br> when<br> $p : of type Item<br> - Title equals "test"
<br> - Event equals "test"<br> then<br> #actions<br>end<br><br>resolves to (could be seen in the drl viewer)<br><br>rule "Your First Rule"<br><br> when<br> $p :Item( eval(
title.isEqual("test", eval(id.isEqual("test") ) )<br> then<br> #actions<br><br>end<br><br><br>so this of course does not work because of the brackets in "eval"<br><br>How could i solve this problem? I need the two different eval
<br>conditions, and sometimes they have to be combined.<br><br>Thanks<br><br>Markus<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>