[jboss-user] [jBPM Users] - event listener expression

theSourpuss do-not-reply at jboss.com
Tue Oct 13 10:21:55 EDT 2009


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

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4260108#4260108

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4260108



More information about the jboss-user mailing list