1 Reply Latest reply on Oct 13, 2009 12:10 PM by Ronald van Kuijk

    event listener expression

    Tony Sourpuss Newbie

      Hi,
      === Environment ==============================
      - jBPM Version : 4.1
      - JDK : 1.6
      - Configuration : SeamConfiguration/SpringConfiguration

      === Process ==================================

      <on event="end">
       <event-listener expr="#{processEndLogActivityHandler}">
       <property name="processEndStatus"><string value="successful"/></property>
       </event-listener>
       </on>


      === Stacktrace ================================
      java.lang.NullPointerException
      at org.jbpm.pvm.internal.model.op.ExecuteEventListener.perform(ExecuteEventListener.java:81)
      at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperationSync(ExecutionImpl.java:637)
      at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperation(ExecutionImpl.java:597)
      at org.jbpm.pvm.internal.model.ExecutionImpl.signal(ExecutionImpl.java:398)
      at org.jbpm.pvm.internal.cmd.SignalCmd.execute(SignalCmd.java:61)
      at org.jbpm.pvm.internal.cmd.SignalCmd.execute(SignalCmd.java:35)
      at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)
      at org.jbpm.pvm.internal.tx.SeamTransactionInterceptor.execute(SeamTransactionInterceptor.java:40)
      at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:46)
      at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:55)
      at org.jbpm.pvm.internal.svc.ExecutionServiceImpl.signalExecutionById(ExecutionServiceImpl.java:84)

      === Problem description =========================
      According to jbpdl-4.0.xsl an event-listener can have an 'expr' attribute instead of an 'class' attribute. But why I get an exception if I use the 'expr' attribute. The 'expr' works fine in java and custom activities.

      As I have seen it is not considered in EventListenerBinding->JpdlParser->parseObjectDescriptor(...)

      Am I right, or is it in any way possible to use expression here?

      kind regards,

      tony