Examples of RuleRuntimeEventListener


Examples of org.kie.api.event.rule.RuleRuntimeEventListener

        final KnowledgeBase kbase = loadKnowledgeBase( "test_AddRemoveListeners.drl" );

        StatefulKnowledgeSession ksession = createKnowledgeSession( kbase );

        // creating listener as a jmock proxy
        final RuleRuntimeEventListener wmeListener = mock( RuleRuntimeEventListener.class );

        ksession.addEventListener( wmeListener );

        // listener will be notified of both facts insertion
        ksession.insert( new Cheese( "stilton" ) );
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.