Description
This concerns an enhancement for the standard folder/document workflow so that when creating documents based on templates, it has the ability to default date properties to a future date/time by using a modified $now parameter using specific date math.
With this improvement the FolderWorkflowImpl will additionally support a date field variable expansion using the following form:
- $now: the current time, optionally followed by math functions using the following time units:
- Y - Year
- M - Month
- D - Day
- H - Hour
- MIN - Minute
- SEC - Second
- MIL - Millisecond
Some example usages are:
- " $now/H" - Round to the start of the current hour
- "$now/D" - Round to the start of the current day
- "$now+2Y" - Exactly two years in the future from now
- "$now-1D" - Exactly 1 day prior to now
- "$now/D+6M+3D" - 6 months and 3 days in the future from the start of the current day
- "$now+6M+3D/D" - 6 months and 3 days in the future from now, rounded down to the nearest day
This enhancement has been contributed by Victor Batsu, thanks!