kbuilder.add(new ReaderResource(source), ResourceType.DRF);
if ( kbuilder.hasErrors() ) {
fail( kbuilder.getErrors().toString() );
}
KnowledgeBase kbase = kbuilder.newKnowledgeBase();
StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();
List<String> list = new ArrayList<String>();
ksession.setGlobal("list", list);
ProcessInstance processInstance =
ksession.startProcess("org.drools.actions");
assertEquals(2, list.size());