StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();
ReteooWorkingMemoryInterface wm = ((StatefulKnowledgeSessionImpl) ksession).session;
AccumulateMemory accMemory = (AccumulateMemory) wm.getNodeMemory( accNode );
BetaMemory existsMemory = (BetaMemory) wm.getNodeMemory( existsNode );
FromMemory fromMemory = (FromMemory) wm.getNodeMemory( fromNode );
BetaMemory notMemory = (BetaMemory) wm.getNodeMemory( notNode );
List<Map<String, Object>> list = new ArrayList<Map<String, Object>>();
ksession.setGlobal( "list",
list );