Package org.drools.core.impl

Examples of org.drools.core.impl.StatelessKnowledgeSessionImpl.addEventListener()


        } else if (session instanceof StatelessKnowledgeSessionImpl) {
            StatelessKnowledgeSessionImpl statelessSession = ((StatelessKnowledgeSessionImpl) session);
            isPhreak = ((ReteooRuleBase)statelessSession.getRuleBase()).getConfig().isPhreakEnabled();
            statelessSession.addWorkingMemoryEventListener( this );
            statelessSession.addAgendaEventListener( this );
            statelessSession.addEventListener( this );
            statelessSession.getRuleBase().addEventListener( this );
        } else if (session instanceof CommandBasedStatefulKnowledgeSession) {
            StatefulKnowledgeSessionImpl statefulSession =
                    ((StatefulKnowledgeSessionImpl)((KnowledgeCommandContext)((CommandBasedStatefulKnowledgeSession) session).getCommandService().getContext()).getKieSession());
            isPhreak = ((ReteooRuleBase)statefulSession.getRuleBase()).getConfig().isPhreakEnabled();
View Full Code Here


                processRuntime.addEventListener( this );
            }
        } else if (session instanceof StatelessKnowledgeSessionImpl) {
            StatelessKnowledgeSessionImpl statelessSession = ((StatelessKnowledgeSessionImpl) session);
            isPhreak = statelessSession.getKnowledgeBase().getConfiguration().isPhreakEnabled();
            statelessSession.addEventListener((RuleRuntimeEventListener) this);
            statelessSession.addEventListener( (AgendaEventListener) this );
            statelessSession.getKnowledgeBase().addEventListener( (KieBaseEventListener) this );
        } else if (session instanceof CommandBasedStatefulKnowledgeSession) {
            StatefulKnowledgeSessionImpl statefulSession =
                    ((StatefulKnowledgeSessionImpl)((KnowledgeCommandContext)((CommandBasedStatefulKnowledgeSession) session).getCommandService().getContext()).getKieSession());
View Full Code Here

            }
        } else if (session instanceof StatelessKnowledgeSessionImpl) {
            StatelessKnowledgeSessionImpl statelessSession = ((StatelessKnowledgeSessionImpl) session);
            isPhreak = statelessSession.getKnowledgeBase().getConfiguration().isPhreakEnabled();
            statelessSession.addEventListener((RuleRuntimeEventListener) this);
            statelessSession.addEventListener( (AgendaEventListener) this );
            statelessSession.getKnowledgeBase().addEventListener( (KieBaseEventListener) this );
        } else if (session instanceof CommandBasedStatefulKnowledgeSession) {
            StatefulKnowledgeSessionImpl statefulSession =
                    ((StatefulKnowledgeSessionImpl)((KnowledgeCommandContext)((CommandBasedStatefulKnowledgeSession) session).getCommandService().getContext()).getKieSession());
            isPhreak = statefulSession.getKnowledgeBase().getConfiguration().isPhreakEnabled();
View Full Code Here

            }
        } else if (session instanceof StatelessKnowledgeSessionImpl) {
            StatelessKnowledgeSessionImpl statelessSession = ((StatelessKnowledgeSessionImpl) session);
            statelessSession.addWorkingMemoryEventListener( this );
            statelessSession.addAgendaEventListener( this );
            statelessSession.addEventListener( this );
            statelessSession.getRuleBase().addEventListener( this );
        } else if (session instanceof CommandBasedStatefulKnowledgeSession) {
            ReteooWorkingMemoryInterface eventManager =
                ((StatefulKnowledgeSessionImpl)((KnowledgeCommandContext)((CommandBasedStatefulKnowledgeSession) session).getCommandService().getContext()).getKieSession()).session;
            eventManager.addEventListener( (WorkingMemoryEventListener) this );
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.