[jboss-jira] [JBoss JIRA] (JBRULES-3717) Compilation error invoking insert in a for loop using the mvel dialect

Mario Fusco (JIRA) jira-events at lists.jboss.org
Mon Jan 14 09:59:21 EST 2013


Mario Fusco created JBRULES-3717:
------------------------------------

             Summary: Compilation error invoking insert in a for loop using the mvel dialect
                 Key: JBRULES-3717
                 URL: https://issues.jboss.org/browse/JBRULES-3717
             Project: JBRULES
          Issue Type: Bug
      Security Level: Public (Everyone can see)
            Reporter: Mario Fusco
            Assignee: Mark Proctor


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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list