[jboss-jira] [JBoss JIRA] (DROOLS-699) A not with no constraints is not linked when part of a subnetwork starting from a BetaNode

Mario Fusco (JIRA) issues at jboss.org
Thu Jan 29 05:42:49 EST 2015


     [ https://issues.jboss.org/browse/DROOLS-699?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mario Fusco resolved DROOLS-699.
--------------------------------
    Fix Version/s: 6.2.0.Final
       Resolution: Done


Fixed by https://github.com/droolsjbpm/drools/commit/c94848072

> A not with no constraints is not linked when part of a subnetwork starting from a BetaNode
> ------------------------------------------------------------------------------------------
>
>                 Key: DROOLS-699
>                 URL: https://issues.jboss.org/browse/DROOLS-699
>             Project: Drools
>          Issue Type: Bug
>            Reporter: Mario Fusco
>            Assignee: Mario Fusco
>             Fix For: 6.2.0.Final
>
>
> The following test fails:
> {code}
>     @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());
>     }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.11#6341)


More information about the jboss-jira mailing list