2 Replies Latest reply on Feb 19, 2010 9:07 AM by tamisier laure

    Use local variable in process

    tamisier laure Newbie

      Hy,

       

      I try to use a rule and a decision node with a local variable :

       

          <start g="14,195,48,48" name="start1">
              <transition g="-33,-26" name="soumettre" to="soumettre"/>
          </start>
          <rules g="97,195,92,52" name="soumettre">
              <fact var="candidat"/>
              <transition g="-68,-18" name="to exclusive1" to="exclusive1"/>
          </rules>
          <decision g="251,191,48,48" name="exclusive1">
              <transition g="-29,-18" name="to ok" to="ok">
                  <condition expr="#{candidat.getPlop() == true}"/>
              </transition>
              <transition g="-29,-18" name="to ko" to="ko"/>
          </decision>
          <state g="303,86,92,52" name="ok">
          </state>
          <state g="340,290,92,52" name="ko">
          </state>

      But if i have just the rule, there is no problem but when i add the decision node i have the following error :

       

      Exception in thread "main" java.lang.NoClassDefFoundError: javax/el/ELException
          at org.jbpm.pvm.internal.script.JuelScriptEngineFactory.getScriptEngine(JuelScriptEngineFactory.java:185)
          at javax.script.ScriptEngineManager.getEngineByName(Unknown Source)
          at org.jbpm.pvm.internal.script.ScriptManager.evaluate(ScriptManager.java:111)
          at org.jbpm.pvm.internal.script.ScriptManager.evaluateExpression(ScriptManager.java:90)
          at org.jbpm.pvm.internal.model.ExpressionCondition.evaluate(ExpressionCondition.java:41)
          at org.jbpm.jpdl.internal.activity.DecisionConditionActivity.findTransitionUsingConditions(DecisionConditionActivity.java:61)
          at org.jbpm.jpdl.internal.activity.DecisionConditionActivity.execute(DecisionConditionActivity.java:46)
          at org.jbpm.jpdl.internal.activity.DecisionConditionActivity.execute(DecisionConditionActivity.java:42)
          at org.jbpm.pvm.internal.model.op.ExecuteActivity.perform(ExecuteActivity.java:60)
          at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperationSync(ExecutionImpl.java:656)
          at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperation(ExecutionImpl.java:616)
          at org.jbpm.pvm.internal.model.ExecutionImpl.start(ExecutionImpl.java:217)
          at org.jbpm.pvm.internal.cmd.StartProcessInstanceInLatestCmd.execute(StartProcessInstanceInLatestCmd.java:65)
          at org.jbpm.pvm.internal.cmd.StartProcessInstanceInLatestCmd.execute(StartProcessInstanceInLatestCmd.java:38)
          at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)
          at org.jbpm.pvm.internal.tx.StandardTransactionInterceptor.execute(StandardTransactionInterceptor.java:54)
          at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.executeInNewEnvironment(EnvironmentInterceptor.java:53)
          at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:40)
          at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:55)
          at org.jbpm.pvm.internal.svc.SkipInterceptor.execute(SkipInterceptor.java:43)
          at org.jbpm.pvm.internal.svc.ExecutionServiceImpl.startProcessInstanceByKey(ExecutionServiceImpl.java:70)
          at Deployer.main(Deployer.java:39)

       

      Do you have an idea in order to correct this problem ?

       

      Thanks and regards

       

      Laure