[jboss-user] [JBoss jBPM] - Re: Threads and jbpm

2008-02-11 Thread kukeltje
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 __

[jboss-user] [JBoss jBPM] - Re: Threads and jbpm

2008-02-11 Thread jcarlos_andia
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(

[jboss-user] [JBoss jBPM] - Re: Threads and jbpm

2008-02-08 Thread jcarlos_andia
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

[jboss-user] [JBoss jBPM] - Re: Threads and jbpm

2008-02-07 Thread kukeltje
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 ___

[jboss-user] [JBoss jBPM] - Re: Threads and jbpm

2008-02-07 Thread jcarlos_andia
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

[jboss-user] [JBoss jBPM] - Re: Threads and jbpm

2008-02-06 Thread [EMAIL PROTECTED]
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