<br>   Andre,<br><br>   The misunderstanding here is that the LHS, except for code blocks like &quot;eval&quot;, &quot;return value expressions&quot; and &quot;accumulate code blocks&quot;, are all &quot;Drools Language&quot;. When you use the &quot;dialect&quot; attribute in a rule or package you are telling the compiler what dialect (MVEL or Java) you will use inside these code blocks mentioned previously + the language for the RHS.<br>
<br>    In other words:<br><br>Map( this[&quot;type&quot;] == &quot;Point&quot;, $x : this[&quot;x&quot;], size == 5 )<br><br>    Everything you see in the previous expression is &quot;Drools language&quot;, does not matter if you set the dialect to java or mvel in the rule. It happens that Drools uses the same map syntax as MVEL (and a lot of other scripting languages). Also, we know, that drools implementation will resolve the first 2 above expressions in MVEL behind the scenes, and the 3rd will be resolved nativelly, but that is not something users should have to worry about, since they are writing it in &quot;Drools Language&quot;.<br>
<br>    If they write an eval, THEN they need to differentiate between MVEL and Java according to the chosen dialect.<br><br>rule xyz<br>   dialect &quot;mvel&quot;<br>when<br>   eval( ...here you write MVEL code... )<br>
then<br>   // here you write MVEL code<br>end<br><br>rule xyz2<br>
   dialect &quot;java&quot;<br>
when<br>
   eval( ...here you write JAVA code... )<br>
then<br>
   // here you write JAVA code<br>
end<br>
<br>    []s<br>    Edson<br><br><div class="gmail_quote">2009/8/20 André Thieme <span dir="ltr">&lt;<a href="mailto:address.good.until.2009.dec.14@justmail.de">address.good.until.2009.dec.14@justmail.de</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Edson Tirelli schrieb:<br>
<div class="im">&gt;<br>
&gt;    ooops... correct version:<br>
&gt;<br>
&gt; when<br>
&gt;    Map( this[&quot;type&quot;] == &quot;Point&quot;, $x : this[&quot;x&quot;] )<br>
&gt;    Map( this[&quot;type&quot;] == &quot;Circle&quot;, this[&quot;x&quot;] == $x )<br>
&gt; then<br>
&gt; end<br>
<br>
</div>Okay, so in the mvel syntax this is possible.<br>
Can this also be achieved in the default rule syntax, without mvel?<br>
<br>
The mvel syntax needs to be interpreted at runtime, so my Clojure lib<br>
will have to output rules in Drools&#39; native rule language.<br>
<br>
What interests me most is that first part:<br>
<div class="im">Map( this[&quot;type&quot;] == &quot;Point&quot;, $x : this[&quot;x&quot;] )<br>
<br>
<br>
</div><div><div></div><div class="h5">André<br>
--<br>
Lisp is not dead. It’s just the URL that has changed:<br>
<a href="http://clojure.org/" target="_blank">http://clojure.org/</a><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" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>  Edson Tirelli<br>  JBoss Drools Core Development<br>  JBoss by Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>