cancel
Showing results for 
Search instead for 
Did you mean: 

How to set a time cycle for specific dates each month

zlatan316
Champ on-the-rise
Champ on-the-rise

I want to set two separate activiti timer events to fire on the 20th, 23rd and 26th of each month at 5AM. One is to occur in GMT and the other in IST timezone. What would the activiti time cycles for these be?

5 REPLIES 5

cjose
Elite Collaborator
Elite Collaborator

Activiti supports ISO 8601 standard on boundary & start timer tasks. Check this page - ISO 8601 - Wikipedia to see if any of those notations can satisfy your needs.

Ciju

ryandawson
Elite Collaborator
Elite Collaborator

Sounds like there's a chance you'll need six timers rather than two. Do let us know how you get on.

zlatan316
Champ on-the-rise
Champ on-the-rise

I had a look at how to do it using ISO8601 format on the wiki page but I couldnt see a way it can support my criteria of recurring on fixed days each month. I will post my findings of further research.

ryandawson
Elite Collaborator
Elite Collaborator

Actually you can use cron expressions too. See Activiti User Guide 

cjose
Elite Collaborator
Elite Collaborator

Cron job gives you more power..

If you like the ISO format, like Ryan said, 6 timers can also do the job in the following format.

R/${dynamically-calculate-next-20th-using expression}/P1M" (repeat this 6 times for all different start times)