[JBoss JIRA] (JBRULES-3717) Compilation error invoking insert in a for loop using the mvel dialect
by Mario Fusco (JIRA)
[ https://issues.jboss.org/browse/JBRULES-3717?page=com.atlassian.jira.plug... ]
Mario Fusco resolved JBRULES-3717.
----------------------------------
Resolution: Done
Fixed in mvel 2.1.4
> 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
13 years, 3 months
[JBoss JIRA] (JBRULES-3717) Compilation error invoking insert in a for loop using the mvel dialect
by Mario Fusco (JIRA)
[ 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
13 years, 3 months
[JBoss JIRA] (JBRULES-3717) Compilation error invoking insert in a for loop using the mvel dialect
by Mario Fusco (JIRA)
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
13 years, 3 months
[JBoss JIRA] (JBRULES-3716) auto-tweak the entityTabuSize when having little entities
by Michiel Vermandel (JIRA)
Michiel Vermandel created JBRULES-3716:
------------------------------------------
Summary: auto-tweak the entityTabuSize when having little entities
Key: JBRULES-3716
URL: https://issues.jboss.org/browse/JBRULES-3716
Project: JBRULES
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Components: drools-planner
Affects Versions: 5.5.0.Final
Reporter: Michiel Vermandel
Assignee: Geoffrey De Smet
In some cases, such as unit tests, one can have a small set of entities.
This can lead to a non-optimal solution with a given entityTabuSize which is suitable for production cases.
Therefor it might be good to auto-tweak the entityTabuSize or at least automatically lower it if there are too little entities.
--
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
13 years, 3 months