final StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();
List<String> list = new ArrayList<String>();
ksession.setGlobal("list", list);
new Thread(new Runnable() {
public void run() {
ksession.fireUntilHalt();
}
}).start();
// start process
WorkflowProcessInstance processInstance = (WorkflowProcessInstance)
ksession.startProcess("org.drools.state");