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-mappin...
Sent from the Drools: User forum mailing list archive at
Nabble.com.