ds1.close();
}
public void testRuleFlowGroupRollback() throws Exception {
CommandBasedStatefulKnowledgeSession ksession = createSession();
List<String> list = new ArrayList<String>();
list.add("Test");
ksession.insert(list);
ksession.execute(new ActivateRuleFlowCommand("ruleflow-group"));
assertEquals(1, ksession.fireAllRules());
try {
ksession.execute(new ExceptionCommand());
fail("Process must throw an exception");
} catch (Exception e) {
e.printStackTrace();
}
ksession.insert(list);
ksession.execute(new ActivateRuleFlowCommand("ruleflow-group"));
assertEquals(1, ksession.fireAllRules());
}