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

Property reactivity discrepancy between executable model and non executable model with a capitalized property

    XMLWordPrintable

Details

    • 2022 Week 29-31 (from Jul 18)
    • 2
    • NEW
    • NEW
    • ---
    • ---

    Description

      Assuming the class VariousCasePropFact has property accessors like this

      public class VariousCasePropFact {
          private String MyTarget; // upper + lower
          public String getMyTarget() {
              return MyTarget;
          }
          public void setMyTarget(String myTarget) {
              MyTarget = myTarget;
          }
          ...
      }
      

      Rule:

      rule R1
        salience 100
        when
          $f : VariousCasePropFact( value == "A" )
        then
          results.add("R1")
      end
      
      rule R2
        no-loop
        when
          $f : VariousCasePropFact( value == "A" )
        then
          results.add("R2");
          modify($f) { MyTarget = "123" };
      end
      

      The rules react differently between exec-model (doesn't react R1) and non-exec-model (reacts R1).

      Attachments

        Issue Links

          Activity

            People

              rhn-support-tkobayas Toshiya Kobayashi
              rhn-support-tkobayas Toshiya Kobayashi
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: