TimeEvent with two timeCycle expressions

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2015 03:12 PM
Hi there,
What's the best practice for a Timer Event that has two different cron expressions? It seems like bpmn's specification only allows one timeCycle node.
Thanks!
What's the best practice for a Timer Event that has two different cron expressions? It seems like bpmn's specification only allows one timeCycle node.
Thanks!
Labels:
- Labels:
-
Archive
2 REPLIES 2

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2015 06:35 PM
A timer event definition can have exactly one element of either timeDate, or timeDuration, or timeCycle. Why do you want to have two different cron expressions in a timer event?
You can use an expression for the timer event definition to set the value based on a process variable.
You can use an expression for the timer event definition to set the value based on a process variable.
<timerEventDefinition>
<timeCycle>${mycron}</timeCycle>
</timerEventDefinition>

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2015 09:51 AM
Thanks for the reply. In this case, it takes two cron expressions for me to schedule what I need. 8am Mon-Sat, 2pm Sun.
