Uploaded image for project: 'JBRULES'
  1. JBRULES
  2. JBRULES-2141

In a rule flow, when the action is in MVEL, it is not possible to import classes

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    Description

      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.

      Attachments

        Activity

          People

            kverlaen@redhat.com Kris Verlaenen
            nheron Nicolas Héron (Inactive)
            Archiver:
            rhn-support-ceverson Clark Everson

            Dates

              Created:
              Updated:
              Resolved:
              Archived:

              PagerDuty