List<Procedure> procedures = new ArrayList<Procedure>();
procedures.add(this.createProcedure(admission, "8080", 1));
procedures.add(this.createProcedure(admission, "8080", 1));
Bill bill = this.createBill(admission, discharge, "", procedures);
StatefulKnowledgeSession ksession = this.createKSession();
List<String> errors = new ArrayList<String>();
ksession.setGlobal("errors", errors);
ksession.insert(bill);
for (Procedure procedure : bill.getProcedures()) {
ksession.insert(procedure);
}
ksession.fireAllRules();