Hello,
I try to add a timer to a task-node like this :
| <task-node name="Prise En Charge">
| <timer name="timer-AlerteDeclenchee" duedate="1 second"
repeat="2 seconds" >
| <action name="Renotification"
class="ocd.common.workflow.process.action.NotificationTimerHandler"></action>
| </timer>
|
I have setted up my jbpm.cfg.xml with a scheduler like this :
| <service name="scheduler"
factory="org.jbpm.scheduler.db.DbSchedulerServiceFactory" />
|
Everything starts corretly, I can see the logs what shows that my timer is started on
create-node event :
| 10:52:23,770 DEBUG GraphElement:170 - event 'timer-create' on
'TaskNode(Prise En Charge)' for 'Token(/)'
|
and the timer is deleted when the node-leave event is thrown
| 10:58:47,676 DEBUG SQL:401 - select timer0_.ID_ as ID1_26_, timer0_.VERSION_ as
VERSION3_26_, timer0_.DUEDATE_ as DUEDATE4_26_, timer0_.PROCESSINSTANCE_ as PROCESSI5_26_,
timer0_.TOKEN_ as TOKEN6_26_, timer0_.TASKINSTANCE_ as TASKINST7_26_, timer0_.ISSUSPENDED_
as ISSUSPEN8_26_, timer0_.ISEXCLUSIVE_ as ISEXCLUS9_26_, timer0_.LOCKOWNER_ as
LOCKOWNER10_26_, timer0_.LOCKTIME_ as LOCKTIME11_26_, timer0_.EXCEPTION_ as
EXCEPTION12_26_, timer0_.RETRIES_ as RETRIES13_26_, timer0_.NAME_ as NAME14_26_,
timer0_.REPEAT_ as REPEAT15_26_, timer0_.TRANSITIONNAME_ as TRANSIT16_26_, timer0_.ACTION_
as ACTION17_26_, timer0_.GRAPHELEMENTTYPE_ as GRAPHEL18_26_, timer0_.GRAPHELEMENT_ as
GRAPHEL19_26_ from JBPM_JOB timer0_ where timer0_.CLASS_='T' and timer0_.TOKEN_=?
and timer0_.NAME_=?
| 10:58:47,676 DEBUG JobSession:171 - deleting timer
timer(timer-AlerteDeclenchee,10:58:21,066) by name timer-AlerteDeclenchee
|
I have tried to add a Thread.sleep(20000) to see if the timeout is fired but nothing seems
to come ...
Any advice should be great !
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097743#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...