[jboss-jira] [JBoss JIRA] Assigned: (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
Wed Jul 29 20:42:29 EDT 2009
[ https://jira.jboss.org/jira/browse/JBRULES-2141?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kris Verlaenen reassigned JBRULES-2141:
---------------------------------------
Assignee: Kris Verlaenen (was: Mark Proctor)
> 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/jira/browse/JBRULES-2141
> Project: JBoss Drools
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: drools-eclipse (flow)
> Affects Versions: FUTURE
> Reporter: Nicolas Heron
> Assignee: Kris Verlaenen
>
> 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/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list