That worked. Thanks. Also in the course of running into this, i did manage to
find a better way to do it. I move the for loop into the LHS and that worked
too. I think I'll go with the latter - I think it's a better way anyway...
--
View this message in context:
Hi,
I have a situation where I need to iterate over an ArrayList in the RHS of a
rule. The ArrayList is created in the LHS of the rule as follows :
rule Hello World
dialect mvel
when
$cur: Message()
$others : ArrayList ( size 0 ) from
A rather debatable feature has been added: the automatic insertion of
semicolons in MVEL code. The problem surfaces in several constellations
where the naive algorithm thinks that a semicolon should be inserted, e.g.,
after the closing parenthesis of any structured statement (such as for,
while,
Thanks W,
It worked after I moved opening brace to the same line as the 'for'.
But 'wow - we've spent several hours trying to resolve this on our own. And
we did not want to post before we confirmed that we've taking care of all
the obvious..
But seriously - someone is advocating that MVEL
On 11 April 2012 17:47, groovenarula gnaru...@la-z-boy.com wrote:
But 'wow - we've spent several hours trying to resolve this on our own. And
we did not want to post before we confirmed that we've taking care of all
the obvious..
Laudable, but if it works in 5.x, it ought to work in 5.x+1.
laune,
Unfortunately, the earlier test worked when I set the dialect to java. It
does not work when it's set to mvel.
When the rule is written as follows :
rule Hello World
dialect mvel
when
$cur: Message()
$others : ArrayList ( size 0 ) from
This is a different problem now, see droolsjbpm-introduction-docs on
strict mode. It says that you can configure
drools.dialect.mvel.strict = false
to avoid such problems.
-W
On 11 April 2012 18:27, groovenarula gnaru...@la-z-boy.com wrote:
laune,
Unfortunately, the earlier test worked