3 Replies Latest reply on Jul 5, 2010 2:55 PM by Gert Leenders

    Bug in JBPM 4: timers on transitions.

    Gert Leenders Newbie

      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:



           <transition to="Task x">

                <timer duedate="3 seconds"/>




      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?