Examples of StatelessKieSession


Examples of org.kie.api.runtime.StatelessKieSession

        }
    }

    @Test
    public void testStatelessRefWMEventListener() throws Exception {
        StatelessKieSession ksession = (StatelessKieSession) container.getComponentInstance("ksession1");
        assertNotNull(ksession);

        assertEquals(1, ksession.getRuleRuntimeEventListeners().size());
        boolean mockWMEventListenerFound = false;
        for (RuleRuntimeEventListener listener : ksession.getRuleRuntimeEventListeners()){
            if (listener instanceof MockRuleRuntimeEventListener){
                mockWMEventListenerFound = true;
                break;
            }
        }
View Full Code Here

Examples of org.kie.runtime.StatelessKieSession

        assertEquals(2, counterFromListener);
    }

    @Test
    public void testStatelessAgendaEventListener() throws Exception {
        StatelessKieSession StatelessKieSession = (StatelessKieSession) context.getBean("statelessSession");
        assertEquals(1, StatelessKieSession.getAgendaEventListeners().size());
        assertTrue(StatelessKieSession.getAgendaEventListeners().toArray()[0] instanceof MockAgendaEventListener);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.