*/
private static RuleBase createKnowledgeBase() throws Exception {
// create a builder
PackageBuilder builder = new PackageBuilder();
// load the process
Reader source = new InputStreamReader(
ProcessInstanceExecutor.class.getResourceAsStream("/ruleflow.rf"));
builder.addProcessFromXml(source);
source = new InputStreamReader(
ProcessInstanceExecutor.class.getResourceAsStream("/ruleflow2.rf"));
builder.addProcessFromXml(source);
// create the knowledge base
Package pkg = builder.getPackage();
RuleBase ruleBase = RuleBaseFactory.newRuleBase();