-
1. Re: using a fixed date in TimerDefinitions is impossible
tom.baeyens Jun 23, 2008 2:37 PM (in response to pascal.verdage)i don't see the use case for fixed dates. if you code a fixed date in your process, what will happen to process executions that start after that date ?
-
2. Re: using a fixed date in TimerDefinitions is impossible
pascal.verdage Jun 24, 2008 4:08 AM (in response to pascal.verdage)Hi,
Fixed date support is required by several specifications (BPEL and XPDL at least).
Regarding the use cases, they are usually similar to cron. For example, starting on 07/28 and repeated every month, create and send pay slips. Or create a backup every week.
Generally, if a timer's date is set in the past, it should fire immediately (at the end of the ongoing transaction).
Regards,
Pascal -
3. Re: using a fixed date in TimerDefinitions is impossible
tom.baeyens Jun 24, 2008 4:24 AM (in response to pascal.verdage)can you give me pointers to the sections in bpel and xpdl spec so that i can get a better understanding of the actual requirements ?
can you also explain the relation between the cron type of timers and a process execution ? -
4. Re: using a fixed date in TimerDefinitions is impossible
pascal.verdage Jun 24, 2008 4:54 AM (in response to pascal.verdage)For XPDL, the spec link is http://www.wfmc.org/standards/docs/TC-1025_10_xpdl_102502.pdf . The deadlines are specified in section 7.5.6 (page 38 for the pdf)
The spec precise :
DeadlineCondition: An expression indicating the time of the deadline. This expression is implementation dependent and may include at least:Times relative to the beginning of the activity. (2 days) Fixed times (January 1) or (January 1, 2002) Times computed using workflow relevant data (varName days)
For BPEL, online link to wait section is http://docs.oasis-open.org/wsbpel/2.0/OS/wsbpel-v2.0-OS.html#_Toc164738509 . This is section 10.7 and the given example is:<sequence> <wait> <until>'2002-12-24T18:00+01:00'</until> </wait> <invoke partnerLink="CallServer" portType="AutomaticPhoneCall" operation="TextToSpeech" inputVariable="seasonalGreeting" /> </sequence>
Regards,
Pascal -
6. Re: using a fixed date in TimerDefinitions is impossible
tom.baeyens Jun 24, 2008 5:15 AM (in response to pascal.verdage)thanks! Feel free to jump on it :-)
-
7. Re: using a fixed date in TimerDefinitions is impossible
pascal.verdage Jun 25, 2008 10:48 AM (in response to pascal.verdage)Hi,
I just committed it.
The patch also includes some enhancements in the ProcessFactory for using timers and some tests using it. The tests are :
- scheduling a timer using a date
- scheduling a repeated timer (the repeat was not set by the factory)
- the execution of the timer arrives to the end of the process (it could be a possible issue if the timers are not deleted at the right moment)
Regards,
Pascal