Uploaded image for project: '[Read Only] - Hippo Repository'
  1. [Read Only] - Hippo Repository
  2. REPO-1190

FolderWorkflow document template enhancement supporting date math

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • 2.28.00
    • None

    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!

      Attachments

        Activity

          People

            Unassigned Unassigned
            adouma Ate Douma (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: