I assume you have created a JIRA for this; since you noticed it in 5.1.1?<br><br>Can you please advise the number and we can endeavour to take a look for 5.3.<br><br>With kind regards,<br><br>Mike<br><br><div class="gmail_quote">
On 23 June 2011 09:16, James Gu <span dir="ltr">&lt;<a href="mailto:jxgu@cnsh.delphi-tech.com">jxgu@cnsh.delphi-tech.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi,<br>
<br>
I am using guvnor-5.2.0.CR1-jboss-as-5.1. I found a bug in DSL mapping.<br>
<br>
This is the DSL items.<br>
<br>
[when]There is an TestObject=TestObject()<br>
[when]-startDate is before {date}=startDate&gt;DateUtils.parseDate(&quot;{date}&quot;)<br>
[when]-endDate is after {date}=endDate&gt;DateUtils.parseDate(&quot;{date}&quot;)<br>
<br>
I created a business rule added these three lines in order. I clicked &quot;view<br>
source&quot; and get this result. The second condition is not in the right place.<br>
<br>
rule &quot;test121&quot;<br>
dialect &quot;mvel&quot;<br>
when<br>
  TestObject( startDate&gt;DateUtils.parseDate(&quot;01/01/2009&quot;,<br>
endDate&gt;DateUtils.parseDate(&quot;01/01/2008&quot;) ) )<br>
then<br>
end<br>
<br>
This is what I expected. I guess guvnor is looking for the first &quot;)&quot; and add<br>
the condition (start with &quot;-&quot;) before it. Actually it should look for the<br>
last &quot;)&quot; and add the condition before it.<br>
<br>
rule &quot;test121&quot;<br>
dialect &quot;mvel&quot;<br>
when<br>
  TestObject( startDate&gt;DateUtils.parseDate(&quot;01/01/2009&quot;) ,<br>
endDate&gt;DateUtils.parseDate(&quot;01/01/2008&quot;) )<br>
then<br>
end<br>
<br>
This problem also exists in drools-5.1.1-guvnor. It will be great if it can<br>
be fixed soon.<br>
<br>
Thanks,<br>
James<br>
<font color="#888888"><br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/the-condition-starts-with-in-DSL-mapping-tp3098986p3098986.html" target="_blank">http://drools.46999.n3.nabble.com/the-condition-starts-with-in-DSL-mapping-tp3098986p3098986.html</a><br>

Sent from the Drools: User forum mailing list archive at Nabble.com.<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>
</font></blockquote></div><br>