2 Replies Latest reply on Nov 17, 2010 2:09 PM by Bo meng

    How can we compare null in the jpdl file

    Bo meng Newbie

      Hi there,

       

      I have below information in my jpdl.xml file,

       

      decision name="waitDecision">
        <transition name="OK" to="wait">
         <condition expr="#{responseData == null}"/>
        </transition>
        <transition to="end"/>
      </decision>

       

      If I set responseData a null value and I got exception like below

      INFO: exception while executing command org.jbpm.pvm.internal.cmd.StartProcessInstanceInLatestCmd@13d638c
      org.jbpm.api.JbpmException: script evaluation error: javax.el.PropertyNotFoundException: Cannot find property responseData
      at org.jbpm.pvm.internal.script.ScriptManager.evaluate(ScriptManager.java:130)

       

       

       

      It workes in Jbpm 4.0 cr1, now we use Jbpm 4.3. Can we compare null object in jpdl?

       

      Thanks,

      Bo