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

Constraint with Extra Parenthesis Not Matching with Executable Model

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • None
    • 7.58.0.Final
    • core engine
    • None
    • 2021 Week 34-36 (from Aug 23)
    • Hide

      Run:

          mvn clean test
      

      on attached reproducer.

      Show
      Run: mvn clean test on attached reproducer.
    • undefined
    • NEW
    • NEW

    Description

      A constraint will fail to match with executable model when shared between two rules and written with an extra parenthesis in one of the two, such as in the following example:

          rule "1"
          when
              Pojo( (str == "A") ) // extra parenthesis here
          then
          end
          rule "2"
          when
              Pojo( str == "B" )
              Pojo( str == "A" )
          then
          end
      

      When running with executable model, rule 1 will not match against the following working memory:

          Pojo{str='A'}
      

      It will instead match as expected in DRL mode.

      Attachments

        Activity

          People

            mfusco@redhat.com Mario Fusco
            mcasalino Matteo Casalino (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: