Describe the bug
If I access a non-existing property of value (e.g. the seconds of a years and months duration), the engine returns a failure. But it should be more friendly and return null instead.
To Reproduce
Steps to reproduce the behavior:
Evaluate the following expression
@"P1Y".seconds
Verify that the engine returns a failure:
failed to evaluate expression '@"P1Y".seconds': No property found with name 'seconds' of value 'P1Y'. Available properties: years,months
Expected behavior
According to the DMN spec, the access of a non-existing property should return null.
Describe the bug If I access a non-existing property of value (e.g. the seconds of a years and months duration), the engine returns a failure. But it should be more friendly and return
null
instead.To Reproduce Steps to reproduce the behavior:
Expected behavior According to the DMN spec, the access of a non-existing property should return
null
.(DMN 1.5, chapter 10.3.2.15, page 133)
Environment
1.16