Uploaded image for project: 'JBRULES'
  1. JBRULES
  2. JBRULES-1136

Rule not firing when expression contains nested accessors

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.0.0.GA
    • Fix Version/s: 4.0.1
    • Component/s: None
    • Labels:
      None
    • Environment:

      Wintel XP Pro SP2

      Description

      Rule that use nested accessors in expressions don't fire. Although simple accessors fire just fine:

      For example :

      when exists( TestSupplier( testBusinessStatus.active == true ) ) -> NEVER FIRES

      when exists( TestSupplier( name == "TEST SUPPLIER" ) ) -> FIRES JUST FINE

      I am using StatefulSession. Will attach the unit test to reproduce the problem.

      Just found same issue happens in other construct like collect :

      when ArrayList(size > 0) from collect(TestSupplier(testBusinessStatus.active == true)) ->NEVER FIRES

        Gliffy Diagrams

          Attachments

          1. action_rules.drl
            0.7 kB
          2. action_rules.drl
            0.5 kB
          3. RuleBaseFacade.java
            2 kB
          4. TestBug.java
            0.6 kB
          5. TestBusinessStatus.java
            0.2 kB
          6. TestSupplier.java
            0.6 kB

            Activity

              People

              • Assignee:
                tirelli Edson Tirelli
                Reporter:
                cloadsun cloadsun (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: