Closed abbasadel closed 1 year ago
ZPA triage:
Is this really a bug ? Looking at the documentation the date and time
function accept only string object. The behaviour of the function is correct from my perspective.
Very valid point @nicpuppa. I think we can safely assume this is a feature request and not a bug. @saig0 since you are the stakeholder/codeowner, kindly have a look on this feature request.
Moving this issue to blocked
since we are waiting for stakeholders' feedback
@abbasadel I tend to reject this feature request.
Reasoning:
date and time()
to accept a date-and-time value and return it as it is. If there is a use case, please share it to demonstrate the need. I recommend rethinking how the expressions are modeled.
Thanks @saig0 for your feedback. What you said makes sense to me.
It seems that we have an agreement that we don't want to add the requested function. Let's close the issue.
Describe the bug Evaluate the following FEEL expression
built_now_again comes out null
To Reproduce Steps to reproduce the behavior:
Expression with redundant 'date and time' casting:
{ builtin_now: now(), builtin_now_again: date and time(builtin_now) }
Results in:
{"builtin_now":"2023-07-31T18:39:50.009723879Z[Etc/UTC]","builtin_now_again":null}
Expression without redundant casting:
{ builtin_now: now(), builtin_now_again: builtin_now }
Results correctly:
{"builtin_now":"2023-07-31T18:42:39.022504381Z[Etc/UTC]","builtin_now_again":"2023-07-31T18:42:39.022504381Z[Etc/UTC]"}
DMN example
```Expected behavior builtin_now_again should equal builtin_now
Workaround Avoid redundant casting
Hint Seems like there's a case missing in datetime function in ConversionBuiltinFunctions. The warning output we get is:
Environment
Support: https://jira.camunda.com/browse/SUPPORT-17817