-
Bug Report
-
Resolution: Fixed
-
L3 - Default
-
None
Steps to reproduce
- Installed Spring boot Camunda 7.13.2
- Create a DTO with boolean primitive type field say "foo" and provide isFoo() instead of getter method.
public class MyDTO { private boolean foo; public boolean isFoo() { return foo; } public void setFoo(boolean foo) { this.foo = foo; } }
- Create a sample DMN which takes this boolean variable as input. For example: myDTO.foo
- Now, set the value of MyDTO#foo to say true and evaluate the DMN table.
A sample code for quick reference: camunda-example-drg.zip
Observed behaviour
The attribute foo does not exist in the context.
Expected behaviour
The attribute foo exists in the context.
Hints
- In https://github.com/camunda/feel-scala/blob/master/src/main/scala/org/camunda/feel/impl/interpreter/ObjectContext.scala#L30-L43, logic is written only to handle getters.
- This issue is first noticed while using Lombok jar. With Lombok, when DTO containing boolean primitive type field is compiled, it contains isFoo() method not the getter.