JBoss Community

Re: JEE + jBPM + threads

created by Maciej Swiderski in jBPM - View the full discussion

Sergey Sazonov wrote:

 

Thanks. Could you please explain the timers activation algorithm after loading a session from a safe state? Do they fire in the main thread?

it will execute by dedicated thread - as descirbed above, timer service will have it's own thread pool with size 1, so that thread will be used to fire the overdue timer. If there are more than one then they will be executed in sequence since there is single thread in the pool.

 

 

Sergey Sazonov wrote:

 

Just found that if I have a boundary timer event in an embedded subprocess it doesn't fire when I load a session (after disposing) and its period is exceeded. Is it a bug or I have to manually send some event to my session like "timerTriggered"?

you might run into this bug, there should not be any other work needed from application side to trigger timers.

 

HTH

Reply to this message by going to Community

Start a new discussion in jBPM at Community