[jboss-jira] [JBoss JIRA] Resolved: (JBRULES-2141) In a rule flow, when the action is in MVEL, it is not possible to import classes

Kris Verlaenen (JIRA) jira-events at lists.jboss.org
Fri Jul 23 09:39:33 EDT 2010


     [ https://jira.jboss.org/browse/JBRULES-2141?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kris Verlaenen resolved JBRULES-2141.
-------------------------------------

    Fix Version/s: 5.1.0.FINAL
       Resolution: Out of Date


This seems to work fine in the latest version.

> In a rule flow, when the action is in MVEL, it is not possible to import classes
> --------------------------------------------------------------------------------
>
>                 Key: JBRULES-2141
>                 URL: https://jira.jboss.org/browse/JBRULES-2141
>             Project: Drools
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: drools-eclipse (flow)
>    Affects Versions: FUTURE
>            Reporter: Nicolas Heron
>            Assignee: Kris Verlaenen
>             Fix For: 5.1.0.FINAL
>
>
> example : 
> -----------
> Long montant = (Long)context.getVariable("surimposition");
> System.out.println ("Surimposition : '" + montant + "'");
>  filter = new org.drools.runtime.ClassObjectFilter (fr.sopra.impot.Impot.class);
> java.util.Collection impots = context.getKnowledgeRuntime().getObjects(filter);
> if (impots.size()==1) {
> 	Impot impot = (Impot)impots.toArray()[0]; 
> 	impot.setMontantRedressement(montant);
> }
> ---------------
> it says  at design time : 
> Process 'ImpotProcess' [fr.sopra.impot.ImpotProcess]: Action node 'Traitement des resultats' [13] has invalid action: was expecting type: java.lang.Object; but found type: null.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list