cancel
Showing results for 
Search instead for 
Did you mean: 

Extending Timers

andrealuciano71
Champ in-the-making
Champ in-the-making
I need to customize the behaviour of Timer Start Events in order to schedule a process according to a predefined calendar which contains some exclusions such as holidays etc.

Which might be the best approach in Activiti BPM?
4 REPLIES 4

vasile_dirla
Star Contributor
Star Contributor
Maybe the cycle with cron expressions will fit your needs?
Here you can find the documentation about the cron expressions:
http://www.quartz-scheduler.org/documentation/quartz-1.x/tutorials/crontrigger

andrealuciano71
Champ in-the-making
Champ in-the-making
Thank you for the advice, but the situation is made more complex by the fact that the dates to skip are stored in a database.
I was wondering if there was a neat solution in Activiti different either from editing the Engine source code or from writing a custom scheduler, such as an example based on quartz, to start my process.

jbarrez
Star Contributor
Star Contributor
A possible way could be to look into how Activiti calculates the next due date of a job: using an implementation of org.activiti.engine.impl.calendar.BusinessCalendar, and plugged in here: https://github.com/Activiti/Activiti/blob/master/modules/activiti-engine/src/main/java/org/activiti/...

andrealuciano71
Champ in-the-making
Champ in-the-making
OK, thank you, very interesting, I will follow your hint and explore this possibility.