[rules-dev] [Bug] due to MVEL, once more
Mario Fusco
mario.fusco at gmail.com
Mon Jan 14 02:47:07 EST 2013
I'll give a look at it asap.
Thanks for reporting this.
On Sun, Jan 13, 2013 at 7:27 PM, Wolfgang Laun <wolfgang.laun at gmail.com>wrote:
> 5.5.0. This simple DRL does not compile unless dialect "mvel" is
> removed. "insert" is not recognized within a for loop body.
>
> rule demo
> dialect "mvel"
> when
> then
> for( int i = 1; i <= 3; i++ ){
> insert( "foo"+i );
> }
> end
>
> Unable to Analyse Expression for( int i = 1; i <= 3; i++ ){
> drools.insert( "foo"+i );
> };:
> [Error: unable to resolve method using strict-mode:
> org.drools.spi.KnowledgeHelper.drools()]
> [Near : {... drools.insert( "foo"+i ); ....}]
> ^
> [Line: 1, Column: 0] : [Rule name='demo']
> _______________________________________________
> rules-dev mailing list
> rules-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-dev/attachments/20130114/2a143e1c/attachment.html
More information about the rules-dev
mailing list