Currently, we have several types of repeats. In particular, we have a repeat date.
Code Block |
---|
repeat date YMD 20090331 20121212 1 # <start> <end> <increment> |
This allows allows loop over a set of dates using start/end and an increment in days.
Additionally, this repeat can take part in a trigger, where the sub-expression can use date arithmetic:
Code Block |
---|
trigger /suite/family:YMD + 1 > 20100101 # Here the sub expression ( /suite/family:YMD + 1) will use date arithmetic |
However, there can be occasions where we want an arbitrary list of dates. Currently the only way to implement this is with repeat enumerated.
...
However this repeat can be any list of integers or even strings, and thus the trigger expressions does do NOT use date arithmetic.
A new new repeat. datelist has been added to address this.
...
Code Block |
---|
task.add_repeat(RepeatDateList("dateYMD",[2010011120130101, 20130102, 20130103, 20200101, 20190101, 20100115])) |
A repeat datelist is a list of arbitrary dates, using YYYYMMDD format. It will use the same date arithmetic as a repeat date, in trigger expressions.