[jboss-user] [JBoss jBPM] - Re: How to cancel a Timer dynamically?

2007-03-09 Thread michaelok
anonymous wrote : Where do you get that from? the SchedulerService in That code is from the CancelTimersAction, in both 3.1.1 and 3.1.2 ... -Signed: another newbie puzzling through timers... ;) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026734#4026734 R

[jboss-user] [JBoss jBPM] - Re: How to cancel a Timer dynamically?

2007-03-09 Thread bsmithjj
Is this not possible? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026709#4026709 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026709 ___ jboss-user mailing list jboss-use

[jboss-user] [JBoss jBPM] - Re: How to cancel a Timer dynamically?

2007-03-05 Thread bsmithjj
I've tried many variants of deleting the timer using the API's. I've also tried creating a hibernate query directly and deleting the timer. What I am finding is that I successfully delete the timer, but some other component in jBPM is saving a new copy of the timer on flush of the session. Ho

[jboss-user] [JBoss jBPM] - Re: How to cancel a Timer dynamically?

2007-02-28 Thread kukeltje
Where do you get that from? the SchedulerService in my (latest) cvs only has void createTimer(Timer timer); | void deleteTimersByName(String timerName, Token token); | void deleteTimersByProcessInstance(ProcessInstance processInstance); | void close(); but that is the interface... th

[jboss-user] [JBoss jBPM] - Re: How to cancel a Timer dynamically?

2007-02-28 Thread bsmithjj
I should have it... I am attempting to do this in execute() method of an ActionHandler. Currently I put the following in (taken from the jBPM source code): | SchedulerService schedulerService = (SchedulerService)Services.getCurrentService( | Services.SERVICENAME_SCHEDULER | );

[jboss-user] [JBoss jBPM] - Re: How to cancel a Timer dynamically?

2007-02-28 Thread kukeltje
Locating it is hard. You have to have some info on the timers, the name of the timer and the token it belongs to. You can then do executionContext.getJbpmContext().getJobSession().cancelTimersByName(name, token) If you don't have the name and token, you have to write your own hibernate query. S