new questions belong in new topics. That makes them easier to find by others
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4128592#4128592
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4128592
__
Solved. Created the timer within an ActionHandler:
First define an event on the state:
| public void createTimer(State myState){
| Delegation delegate=new
Delegation("com.jotatech.vgrc.action.visual.MyActionHandler");
|
| Event myEvent=new Event(
Thanks for the response kukeltje.
I have this code for the timer:
| Calendar cal=Calendar.getInstance();
| BusinessCalendar bc=new BusinessCalendar();
| Duration duration=new Duration("60 seconds");
| Date dueDate=bc.add(cal.getTime
The unittests (in the source in cvs) show many 'examples', including how to
create timers by code.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4127429#4127429
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4127429
___
Hi J.
That was my first attempt but since my process definition was created from
scratch, by code, no xml in between, had some trouble trying to implement a
timer on states. If you know where there is an example of how to implement
timers by code please let me know. I have seen the use of JobEx
Hi,
is not it better to put another state between these two tasks with the timer to
implement wait before transition to next task?
http://docs.jboss.com/jbpm/v3/userguide/scheduler.html#timers
J.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4127252#4127252