1

I am using Activiti BPMN version 5.15. I have a user task where I attached a timer as you see at the following screenshot

enter image description here

How am I supposed to make the timer expire now (for testing purposes) either programmatically or manually ?

Thank you

Investigator
  • 1,431
  • 2
  • 17
  • 24

1 Answers1

2

Why dont you add a signal boundary event that points to the same output just for testing. You can send the signal to the engine via the ReST API, again, just for testing. The handler can stay in place in production as nothing will every trigger it. You can also follow the solution here which also uses a signal, but uses the signal to reset the boundary timer. The second option is more complex, but may better emulate exactly what you are asking for.

Greg Harley
  • 3,230
  • 1
  • 11
  • 14
  • I was looking for the Java API that retrieves the timers programmatically for example like: `getProcess().getTimers()` and then expires it. But what you propose is something that I was not aware although I do not like the idea that I will deploy artifacts only for testing purposes at the production. – Investigator Jun 01 '20 at 08:11