DTO object with boolean field and isXYZ() method does not work with FEEL

XMLWordPrintable

      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

            Assignee:
            Tassilo Weidner-Mühl
            Reporter:
            Garima Yadav
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: