cancel
Showing results for 
Search instead for 
Did you mean: 

Start timer event supporting multiple times

natedawg
Champ in-the-making
Champ in-the-making
Hi,

Quick question,
Is it possible to specify in a <b>single</b> start timer event following:
- execute a job every 6 hours except on Sundays and last Friday in a month

If it is pls point me to some good documentation of values specified in Time cycle.


Kind regards
A.H.
6 REPLIES 6

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi A.H,

use cron expressions
http://activiti.org/userguide/index.html#bpmnEvents

Regards
Martin

natedawg
Champ in-the-making
Champ in-the-making
Hi,

But can I specify more than one cron expression in a single start timer event?

Kr
A.H.

jbarrez
Star Contributor
Star Contributor
No, but "- execute a job every 6 hours except on Sundays and last Friday in a month" should in theory be doable with cron … just don't ask me how, I always have to google those things Smiley Tongue

natedawg
Champ in-the-making
Champ in-the-making
Thx for the answer. I am aware that a single cron exp may cover a lot of date specs but I have to automatically transform custom workflow system to activiti, including scheduling. A single process may be triggered by a dozen of date specs, hence my question regarding multiple cron expressions.

Kind regards
A.H.

jbarrez
Star Contributor
Star Contributor
In the next version there is support for multiple start timer events, which sounds like a solution to your problem.

natedawg
Champ in-the-making
Champ in-the-making
Sounds great. Thx for the infoSmiley Happy

Kind regards
A.H.