[
https://issues.jboss.org/browse/JBRULES-3717?page=com.atlassian.jira.plug...
]
Mario Fusco reassigned JBRULES-3717:
------------------------------------
Assignee: Mario Fusco (was: Mark Proctor)
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: Mario Fusco
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