ruleBase.addPackage( pkg );
StatefulSession session = ruleBase.newStatefulSession();
final List<ProcessEvent> processEventList = new ArrayList<ProcessEvent>();
final RuleFlowEventListenerExtension listener = new RuleFlowEventListenerExtension() {
public void beforeVariableChange(RuleFlowVariableChangeEvent event, WorkingMemory workingMemory) {
System.out.println("beforeVariableChange " + event);
processEventList.add(event);
}