End date + Interval in timerDefinition
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2013 05:15 PM
Hello,
I would like to run repeated timer process with both specified end date and intervals. For example: I would like to create a task instance weekly ( every 7 days ) starting from Jan 2, 2013 ( start date ) and April 20, 2013. ( end date ). So it should fire at 1/2/2013, 1/9/2013 …. and stops at 4/20/2013
From the docs, it doesn't appear that Activiti supports this. Advice? Thoughts?
Thanks!
I would like to run repeated timer process with both specified end date and intervals. For example: I would like to create a task instance weekly ( every 7 days ) starting from Jan 2, 2013 ( start date ) and April 20, 2013. ( end date ). So it should fire at 1/2/2013, 1/9/2013 …. and stops at 4/20/2013
From the docs, it doesn't appear that Activiti supports this. Advice? Thoughts?
Thanks!
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2013 08:45 AM
Only thing I can think of is to calculate the number or times it should be repeated (so (endDate - startDate) / interval or some similar calculation). This way, you can ask the timer to only repeat X times, where the last time will be on you're end date.