How to stop or pause the timer (Activiti 6)?

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
maxlich
Active Member

How to stop or pause the timer (Activiti 6)?

Good time. I need to stop or pause the timer in Activiti 6.

1 Reply
pault
Active Member II

Re: How to stop or pause the timer (Activiti 6)?

Not sure about stopping a timer once started, but I have a process with a timer loop that controls the periodic execution of a piece of logic, however the time between executions may vary. So my trigger fires more frequently than it may need to, and triggers a service task that performs further checks to determine if it is the right time. If it isn't it triggers the re-setting of the timer, otherwise it proceeds to the periodic execution.

Dependent on your use-case, maybe you could use this approach and check if a delay or suspension of the trigger has occured before proceeding.