Gert Leenders [http://community.jboss.org/people/glnds] created the discussion

"Bug in JBPM 4: timers on transitions."

To view the discussion, visit: http://community.jboss.org/message/550211#550211

--------------------------------------------------------------
Even in the last snapshot build jbpm-distro-4.4-20100618.012828-1 there still 
seems to be a bug when adding a timer to a transition:

*<state>*
*     <transition to="Task x">*
*          <timer duedate="3 seconds"/>*
*     </transition>*
*</state>*

When defining this in jpdl you’ll always get the following error:

+Exception in thread "main" org.jbpm.api.JbpmException: timer has no signalName 
or eventName specified+
+                at 
org.jbpm.pvm.internal.job.TimerImpl.validate(TimerImpl.java:143)+
+                at 
org.jbpm.pvm.internal.jobexecutor.JobExecutorTimerSession.schedule(JobExecutorTimerSession.java:53)+
+                at 
org.jbpm.pvm.internal.job.TimerImpl.schedule(TimerImpl.java:70)+

This is because the variable ‘eventName’ of TimerImpl is never set (and there 
seems no possibility to do it due to the restrictions in jpdl and the 
jpldParser).

Maybe when parsing a timer on a transition a default event (timeout) could be 
specified?

Regards,
Gert

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/550211#550211]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to