I am using a timer as described in Chapter 12 of the documentation. 

  | <state name='state_one'>
  |   <timer name='reminder' 
  |          duedate='2 minutes' 
  |          repeat='10 minutes'
  |          transition='time-out-transition' >
  |     <action class='com.sample.timer.action' />
  |   </timer>
  | </state>
  | 

The timer works well when a few process instances are created. However, when I 
load the system by creating scores of process instances, I observe that for a 
few process instances, timer records are not cleared from the JBPM_TIMER table 
even after those process instances transition out of "state_one". The scheduler 
keeps updating the due dates for such timer records and the action class is 
periodically invoked. This behavior continues as long as such process instances 
do not reach the end state.

How can I ensure that the timer associated with a state gets cancelled when the 
process instance moves out of that state? Alternately, how do I 
programmatically cancel a timer from the execute method of the action class 
after confirming that the process instance is no longer  in the timed state

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

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


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to