JBoss Community

How can we compare null in the jpdl file

created by Bo meng in jBPM - View the full discussion

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

Reply to this message by going to Community

Start a new discussion in jBPM at Community