class ReactiveKieSessionExample {

    public void go() {
        KieServices ks = KieServices.Factory.get();
        KieContainer kContainer = ks.getKieClasspathContainer();

        KieSession ksession = kContainer.newKieSession();

        List<String> list = new ArrayList<String>();
        ksession.setGlobal( "list", list );

        ksession.fireAllRules();

        System.out.println(list);

        list.clear();

        ksession.insert("Debbie");
        ksession.fireAllRules();

        System.out.println( list );
    }

}