cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatic firing of timer event

krraghavan
Champ in-the-making
Champ in-the-making
We have a workflow that almost exclusively uses ServiceTasks.  We want to be able to fire timer events from some of the subprocesses and catch them as boundary timer events and transition to different parts of the workflow.

As I understand, Activiti does not support timer events for ServiceTask and that the management of this is left to the task implementer.  Can you tell me how I can programmatically fire a timer event so that it will go through my boundary event.

I've googled, gone through the code and combed through the forums but have not been able to figure it out.

Thx
Raghavan
3 REPLIES 3

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi Raghavan,

To fire timer events you have to work with virtual time (it is wildly used in simulations). I do not think it is your case.
In real world you are not able to change time and fire timer events (time is just going).

Activiti does not support timer events
I do not agree timer events are supported.

Advice: Use messages or signals events instead of timer events.
Regards
Martin

Thanks Martin.  if you have any pointers as to how to do this using the API and where I could look, I would really appreciate it.
Thx much
Raghavan

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi,

org/activiti/engine/test/bpmn/event/message/*Test
org/activiti/engine/test/bpmn/event/signal/*Test
in activiti source

Regards
Martin