This will be related to the MVEL static analyser that produces the variable 
stack. I guess it's not correctly adding "drools" to this array.

Mario will look into it this week.

Mark
On 13 Jan 2013, at 18:27, Wolfgang Laun <[email protected]> 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
> [email protected]
> https://lists.jboss.org/mailman/listinfo/rules-dev


_______________________________________________
rules-dev mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-dev

Reply via email to