Mario Fusco created DROOLS-699:
----------------------------------
Summary: 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
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)