DMN 1.0 FTF Avatar
  1. OMG Issue

DMNFTF — support for 'duration'

  • Key: DMNFTF-192
  • Status: closed  
  • Source: Thematix Partners LLC ( Mr. Edward J. Barkmeyer)
  • Summary:

    Clause says:
    "FEEL supports the following datatypes:

    • duration
      o days and time duration
      o years and months duration"
      But 10.3.2 only defines the two subtypes, which correspond to XPath Datamodel datatypes, which are respectively integer counts of seconds and months. It does not refer to the XML Schema 'duration' type.

    Similarly, the "duration" function in clause requires the string value to be in the lexical space of one of these two subtypes, not that of xs:duration, per footnote 6 to table 54 (beta-3) [Note: the footnote erroneously refers to Xpath. It should be XDM.]

    It is apparently not intended that a supporting tool needs to support xs:duration at all. For that reason, the supertype 'duration' should be omitted from the list in Alternatively, it might say that support for the more general 'duration' type is not required.

    Finally, defines a function that produces a yearMonthDuration as the difference between two date/time values (which presumably truncates the duration result), but no function that produces a dayTimeDuration (which could be exact). This is a shortcoming for stating rules relating to elapsed time.

  • Reported: DMN 1.0b1 — Tue, 8 Jul 2014 23:05 GMT
  • Disposition: Resolved — DMN 1.0
  • Disposition Summary:

    Remove 'duration' from the list in and elevate the two sub-bullets:

    • years and months duration
    • days and time duration
  • Updated: Tue, 21 Apr 2015 01:19 GMT
  • Attachments: