You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kie.apache.org by "jomarko (via GitHub)" <gi...@apache.org> on 2025/09/12 14:01:02 UTC
[I] DMN Runner returns wrong values for B-FEEL expressions [incubator-kie-issues]
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: commits-unsubscribe@kie.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org
Re: [I] DMN Runner returns wrong values for B-FEEL expressions [incubator-kie-issues]
Posted by "gitgabrio (via GitHub)" <gi...@apache.org>.
gitgabrio closed issue #2099: DMN Runner returns wrong values for B-FEEL expressions
URL: https://github.com/apache/incubator-kie-issues/issues/2099
--
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: commits-unsubscribe@kie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org
Re: [I] DMN Runner returns wrong values for B-FEEL expressions [incubator-kie-issues]
Posted by "jomarko (via GitHub)" <gi...@apache.org>.
jomarko commented on issue #2099:
URL: https://github.com/apache/incubator-kie-issues/issues/2099#issuecomment-3285474701
@gitgabrio FYI
--
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: commits-unsubscribe@kie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org
Re: [I] DMN Runner returns wrong values for B-FEEL expressions [incubator-kie-issues]
Posted by "gitgabrio (via GitHub)" <gi...@apache.org>.
gitgabrio commented on issue #2099:
URL: https://github.com/apache/incubator-kie-issues/issues/2099#issuecomment-3291296957
Finding with `decimal("a", 0)` expression.
During evaluation,
1. B`aseFEELFunction.invokeReflectively(EvaluationContext, Object[])`
2. current function is `DecimalFunction`
3. parameters are `String` and `integer`
4. `BaseFEELFunction.getCandidateMethod(EvaluationContext, Object[], boolean)` returns `null` (no `invoke` method inside `DecimalFunction` with those parameters)
5. error logged (and `null` returned) at `BaseFEELFunction#112`
6. In this case, solution should be to check for B-FEEL at line 112, soon before error logging/null return.
7. Maybe similar solution for all other cases
--
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: commits-unsubscribe@kie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org