adamecr / Common.DMN.Engine

DMN Engine is a decision engine (rule engine) allowing to execute and evaluate the decisions defined in a DMN model. Its primary target is to evaluate the decision tables that transform the inputs into the output(s) using the decision rules.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

duration nog conforming to FEEL specification

rmerkx opened this issue · comments

Hi Radec,

Expressions involving calculations with durations is not behaving as expected:

  • date("2023-01-01") + duration("P1M") * 12 results in 12/27/2023 12:00:00 AM instead of 2023-12-01
  • P12M == P1Y but (12 * P1M) != P12M.

The issue seems to be that cardinal periods are converted to timespans before being used in expression involving calculations on durations.

See example attached.

Kind regards,
Radoslaw