cancel
Showing results for 
Search instead for 
Did you mean: 

Scheduled Workflows in Activiti

shweta_tiwari
Champ in-the-making
Champ in-the-making
There is an option in activiti to schedule workflows using Timer Start Event .  They allow scheduling at one particular time or based on certain time period.

So in case of workflows that are scheduled to run in specific time intervals , what is the impact on activiti performance if we have many workflows scheduled at specific time interval and they are getting invoked after some time ?

Also if there is a workflow with 3 steps and starttimer is set to be invoked every 5 minutes.

start–>starttimer –> task1 –> task2–> end

Then, does that mean that this workflow will run in every 5 mins and perform Task1 and Task2?
3 REPLIES 3

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi
time period.
Yes http://www.activiti.org/userguide/#bpmnTimerStartEvent

Then, does that mean that this workflow will run in every 5 mins and perform Task1 and Task2?
Use just one start event (TimerStartEvent). Current DefaultJobExecutor implementation does not guarantee that it will start process on exact time.

Regards
Martin

shweta_tiwari
Champ in-the-making
Champ in-the-making
Thanks Martin for your comments.  When start timer is called it invokes the workflow but if we want to call our custom implementation while starting a workflow via Job executor is there any way to do that?

jbarrez
Star Contributor
Star Contributor
what do you mean with 'custom implementation'? You custom java service tasks? If so, that just works.