Open ljmotta opened 4 months ago
This issue is actually really complicated, because we would have to infer the type of an arbitrary expression to know what properties are available. A workaround would be to extract this to a context entry and access it in a explicitly-typed manner, like this:
However, as you can see, this is not working as well. I propose we fix this in two parts:
cc @danielzhe
On a
date and time duration
it should appears the suggestion to access thedays
,hours
,minutes
andseconds
as shown on the FEEL handbook [1]. The same apply for all built-in types.example of duration:
example of date:
[1] https://kiegroup.github.io/dmn-feel-handbook/#feel-values
This issue is split into two parts. This ticket is related to Part 2. The Part 1 is here: https://github.com/apache/incubator-kie-issues/issues/1416