-
Bug Report
-
Resolution: Won't Fix
-
L3 - Default
-
None
-
None
-
None
Environment (Required on creation):
camunda-bpm-spring-boot-starter 7.17.0
Description
Feel functions that have null as a parameter evaluate to true or false depending on what the input expression evaluates to, even if the feel function does not access the input at all.
In the attached dmn table i used the same feel expressions in multiple input columns. One input evaluates to null, and one to an integer or string. In the screenshot below from the Decision Cockpit you can see that sometimes even(null) or contains(null, Pizza) evaluate to true and sometimes not.
Steps to reproduce (Required on creation):
Call the attached dmn table from a process instance which has the process variables
- someInteger = 1
- nullInteger = null
- someString = "Pizza"
- nullString = null
Observed Behavior (Required on creation):
The following expressions evaluate to true if the input expression evaluates to null:
- even(null)
- contains(?, "Pizza")
- contains(null, "Pizza")
- contains("Pizza", null)
- list contains(null, 4)
The same applies to equivalent functions like starts with(), matches(),...
Expected behavior (Required on creation):
The following expressions evaluate to false if the input expression evaluates to null:
- even(null)
- contains(?, "Pizza")
- contains(null, "Pizza")
- contains("Pizza", null)
- list contains(null, 4)
The same applies to equivalent functions like starts with(), matches(),...
Root Cause (Required on prioritization):
Solution Ideas (Optional):
Hints (optional):