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
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
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
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
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
| );
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