2 Replies Latest reply on Sep 3, 2008 5:07 PM by Earnest Dyke

    MVEL with Java dialect

    Earnest Dyke Novice

      When i try to access my seam app with this rule file:



      package org.ebsinc.ia.rules
      
      #list any import classes here.
      
      import org.ebsinc.ia.entity.BenefitAnalysis;
      import org.ebsinc.ia.entity.RetirementEligibility;
      
      #declare any global variables here
      
      
      dialect "java"
      
      rule "Verify FERS"
           when
                $ba : BenefitAnalysis(plan == "FERS")
                $elig : RetirementEligibility(eligible == false)
           then 
                System.out.println("FERS retirement");
                $elig.setReason("ok");
                $elig.setEligible(true);
      end




      why would I be getting an exception related to mvel:


      Caused by: org.mvel.UnresolveablePropertyException: unable to resolve token: declr.identifier
           at org.mvel.ASTNode.getReducedValue(ASTNode.java:324)
           at org.mvel.ast.PropertyASTNode.getReducedValue(PropertyASTNode.java:32)
           at org.mvel.MVELInterpretedRuntime.parseAndExecuteInterpreted(MVELInterpretedRuntime.java:110)
           at org.mvel.MVELInterpretedRuntime.parse(MVELInterpretedRuntime.java:58)
           at org.mvel.TemplateInterpreter.execute(TemplateInterpreter.java:403)