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

A not with no constraints is not linked when part of a subnetwork starting from a BetaNode

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 6.2.0.Final
    • None
    • None
    • None

      The following test fails:

          @Test
          public void testNotExists() {
      
              String drl2 =
                      "import " + List.class.getCanonicalName() + ";\n"
                      + "\n\n"
                      + "rule \"NotExists\"\n"
                      + "when\n"
                      + "$l1: List() \n"
                      + "$l2: List() \n"
                      + "exists( String() from $l1 ) \n"
                      + "not( exists( String() ) )\n"
                      + "then end\n";
      
              KieSession ksession = new KieHelper().addContent(drl2, ResourceType.DRL)
                                                   .build()
                                                   .newKieSession();
      
              ksession.insert(asList("Mario", "Mark"));
              ksession.insert(asList("Julie", "Leiti"));
      
              assertEquals(4, ksession.fireAllRules());
          }
      

              mfusco@redhat.com Mario Fusco
              mfusco@redhat.com Mario Fusco
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: