" $s : EvallerBean( evaller.size() == 1 )\n" +
"then\n" +
" list.add( 42 );\n" +
"end\n";
KnowledgeBase kbase = loadKnowledgeBaseFromString(str);
StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();
List<Integer> list = new ArrayList<Integer>();
ksession.setGlobal("list", list );
ksession.setGlobal("evaller", new Evaller());