TimerStartEvent : How to?

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2014 01:31 PM
Hello,
I'm quite new with timers on activiti , i'm trying to execute a process every 1 minute ( undefinitely). For that , i created a TimerStartEvent , that will initiate my task
Timer properties are as follow :
Timecycle : R/PT1M
I've a project for testing, i deploy my different BPMN and then i made a Thread.Sleep( 10000000) / ( also a while true loop in a second version).
I've made a breakpoint on my task method , but it never breaks there! it's like the timer is not executing my task…
Any help with this? how to correctly set up the timer?
Thanks!
I'm quite new with timers on activiti , i'm trying to execute a process every 1 minute ( undefinitely). For that , i created a TimerStartEvent , that will initiate my task
Timer properties are as follow :
Timecycle : R/PT1M
I've a project for testing, i deploy my different BPMN and then i made a Thread.Sleep( 10000000) / ( also a while true loop in a second version).
I've made a breakpoint on my task method , but it never breaks there! it's like the timer is not executing my task…
Any help with this? how to correctly set up the timer?
Thanks!
Labels:
- Labels:
-
Archive
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2014 02:37 AM
Hi,
Did you start job executor in the test?
(example:
Regards
Martin
Did you start job executor in the test?
(example:
org.activiti.engine.test.bpmn.event.timer.StartTimerEventTest#testDurationStartTimerEvent
in activiti source)Regards
Martin

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2014 04:58 AM
Nope, i thought depoying diagram will start automatically the job
