Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-2594

drools compiler doesn't accept is as getter for boolean attribute of POJO

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Critical
    • None
    • None
    • None
    • Hide

      create a fact with a boolean attribute,
      add getter isAttribute and compile the rules that uses that attribute
      $a = Pojo(attribute == false)

      Show
      create a fact with a boolean attribute, add getter isAttribute and compile the rules that uses that attribute $a = Pojo(attribute == false)
    • NEW
    • NEW

    Description

      Hi, based on 7.7.0 documentation a POJO boolean getter can be isMyAttribute or getMyAttribute.

      We get the following exception when using is as prefix for boolean getter as follows:
      2018-05-28 22:17:41 [main] ERROR o.d.c.kie.builder.impl.KieProject - Unable to build KieBaseModel:myKbase
      Unable to Analyse Expression current == true:
      [Error: unable to resolve method using strict-mode: com.acme.pojos.current()]
      [Near :

      {... current == true ....}

      ]

      Attachments

        Activity

          People

            mfusco@redhat.com Mario Fusco
            galnitzan_jira Gal Nitzan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: