cancel
Showing results for 
Search instead for 
Did you mean: 

Resetting timeout on a TimerBoundaryEvent

lmollea
Champ in-the-making
Champ in-the-making
Is it possible to reset (i.e. restart, change the firing date) of a particular timerBoundaryEvent?

Suppose I set a boundary Event attached to a UserTask to the value of ${timeout}. The userTask starts and a timer boundary evaluates the ${timeout} value setting a timer to fire the boundary event at that particular time.

Then, during the timeout period and during the user task, someone externally may decide that the timeout should be changed (increased, in the particular case).

Safe from updating the ACT_RU_JOB table directly, there is no programmatic way of doing this via Activiti API, isn't it?
As far as I get, such table is read every X seconds (5 as default) by the jobExecutor, and only the *due* timers are picked up (so there may be a delay of up to 5 seconds for a timer to fire, isn't it)?
2 REPLIES 2

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi,

API call - no (AFAIK)

5 seconds are not guarantied (it can vary).

Regards
Martin

jbarrez
Star Contributor
Star Contributor
And  the 5 seconds setting it is also configurable