jomarko opened a new issue, #2099:
URL: https://github.com/apache/incubator-kie-issues/issues/2099
using the DMN Runner and these B-FEEL expressions user is getting wrong
results.
- day of week("a") : throws an error about non existing function instead of
""
- split("abc", 22) : throws an error 'FEEL_EVALUATION_ERROR: FEEL ERROR
while evaluating literal expression 'split("abc", 22)': Unable to find function
'split( lass org.kie.dmn.feel.runtime.functions.SplitFunctio )'' instead of []
- "Today is " + today() : returns null instead of "Today is 202x-xx-xx"
- "The result is: " + 1 : returns null instead of "The result is: 1"
- 5 + " minutes" : returns null instead of "5 minutes"
- "This is " + null : returns null instead of "This is "
- 1 + null : returns null instead of 1
- null - 6 : returns null instead of -6
- date("2021-01-01") + 7 : throws error 'FEEL_EVALUATION_ERROR: FEEL ERROR
while evaluating literal expression 'date("2021-01-01") + 7': Based on the
specification, the operation is undefined for the specified parameter set.'
instead of 7
- "abc" - 2 : returns null instead of ""
- 22 * "a" : returns null instead of 0
- null / 22 : returns null instead of 0
- duration("P1Y") * null : returns null instead of duration("P0M")
For trying those expressions, this model can be used:
[bfeel-tests.dmn.txt](https://github.com/user-attachments/files/22299604/bfeel-tests.dmn.txt)
One of reported cases demonstrated also as screenshot
<img width="1854" height="798" alt="Image"
src="https://github.com/user-attachments/assets/fe5acf4b-829d-4332-8dff-dc10b4b234d3"
/>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]