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

Not-Constraint is not working properly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 3.0.4
    • Fix Version/s: 3.0.5
    • Component/s: drools-core (expert)
    • Labels:
      None
    • Environment:

      WinXP, eclipse 3.2.0, JBoss Rules IDE 3.0.4

      Description

      "Not"-Constraints are not evaluated like expected. See following example:

      rule "Not is not correct working rule"
      when
      Element ( $a : a, $b : b, $c : c )
      not( Element (a == $a) )
      then
      System.out.println( "rule fired" );
      end

      Asserted Facts:
      workingMemory.assertObject( new Element(1,1,2) ); //a,b,c
      workingMemory.assertObject( new Element(2,2,3) ); //a,b,c

      The second element is not having the same a, so rule should fire two times, but it is not.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                tirelli Edson Tirelli
                Reporter:
                mfrandsen Michael Frandsen
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: