I assume you have created a JIRA for this; since you noticed it in 5.1.1?

Can you please advise the number and we can endeavour to take a look for 5.3.

With kind regards,

Mike

On 23 June 2011 09:16, James Gu <jxgu@cnsh.delphi-tech.com> wrote:
Hi,

I am using guvnor-5.2.0.CR1-jboss-as-5.1. I found a bug in DSL mapping.

This is the DSL items.

[when]There is an TestObject=TestObject()
[when]-startDate is before {date}=startDate>DateUtils.parseDate("{date}")
[when]-endDate is after {date}=endDate>DateUtils.parseDate("{date}")

I created a business rule added these three lines in order. I clicked "view
source" and get this result. The second condition is not in the right place.

rule "test121"
dialect "mvel"
when
 TestObject( startDate>DateUtils.parseDate("01/01/2009",
endDate>DateUtils.parseDate("01/01/2008") ) )
then
end

This is what I expected. I guess guvnor is looking for the first ")" and add
the condition (start with "-") before it. Actually it should look for the
last ")" and add the condition before it.

rule "test121"
dialect "mvel"
when
 TestObject( startDate>DateUtils.parseDate("01/01/2009") ,
endDate>DateUtils.parseDate("01/01/2008") )
then
end

This problem also exists in drools-5.1.1-guvnor. It will be great if it can
be fixed soon.

Thanks,
James



--
View this message in context: http://drools.46999.n3.nabble.com/the-condition-starts-with-in-DSL-mapping-tp3098986p3098986.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users