Source: ACTICO ( Daniel Thanner)
Imagine the following two date and time values (note that both values are the same instant in time on the time line):
- date and time("2017-11-10T11:00@Europe/Paris")
- date and time("2017-11-10T10:00Z")
If the user uses FEEL expressions he is very surprised about the results:
If the user wants to check if both date and time values are the same instant on the time line he must use the following FEEL expression:
If the user uses a combination of < or > with = the underlying operations are not really understandable:
This expressions says in the curently defined semantics in FEEL: "Is the left instant of time greater than the right instant in time or are the properties of the left value equal to the properties of the right value".
This is not "Friendly Enough" to the user and the source of very many misunderstandings.
- Therefore the operators =, !=, <, >, <= and >= should ALL use the defined value functions.
- Additionally we recommend to introduce an additional property "value" for date, time, date and time, years and months duration, days and time duration (see table 53 on page 126). The property returns the value of the value function using type number.
- Introduce a new built-in function "same properties(value1, value2)" that compares all properties of value1 and value2 for equality. This built-in function reflects the currently specified behaviour of equality for date, date and time, time.
Reported: DMN 1.1 — Mon, 2 Oct 2017 10:05 GMT
Disposition: Resolved — DMN 1.3
use timeline semantics for comparison of dates
see attached .docx file
Updated: Mon, 30 Mar 2020 19:50 GMT
- DMN13-35-v3.docx 17 kB (application/vnd.openxmlformats-officedocument.wordprocessingml.document)