" <connection from=\"2\" to=\"3\" />\n" +
" </connections>\n" +
"</process>");
builder.addRuleFlow(source);
Package pkg = builder.getPackage();
RuleBase ruleBase = RuleBaseFactory.newRuleBase();
ruleBase.addPackage( pkg );
WorkingMemory workingMemory = ruleBase.newStatefulSession();
List<String> myList = new ArrayList<String>();
workingMemory.setGlobal("myList", myList);
List<String> collection = new ArrayList<String>();
Map<String, Object> params = new HashMap<String, Object>();
params.put("collection", collection);