[rules-dev] [Bug] due to MVEL, once more

Mark Proctor mproctor at codehaus.org
Sun Jan 13 13:41:06 EST 2013


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 <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




More information about the rules-dev mailing list