for (DroolsError error: builder.getErrors().getErrors()) {
System.err.println(error);
}
fail("Could not parse process");
}
RuleBase ruleBase = RuleBaseFactory.newRuleBase();
ruleBase.addPackage( builder.getPackage() );
ruleBase = SerializationHelper.serializeObject(ruleBase);
StatefulSession session = ruleBase.newStatefulSession();
session = SerializationHelper.getSerialisedStatefulSession(session);
List<String> list = new ArrayList<String>();
session.setGlobal("list", list);
ProcessInstance processInstance = session.startProcess("org.drools.integrationtests.multithread");
final ProcessInstanceSignalRunner[] r = new ProcessInstanceSignalRunner[THREAD_COUNT];