Interface KieSessionHelper<T>

    • Method Detail

      • initializeSession

        T initializeSession​(java.lang.Class<T> kieSessionClass,
                            RuleEvaluationContext context,
                            org.kie.api.runtime.KieContainer kieContainer)
        given the RuleEvaluationContext and currently active instance of KieContainer, initializes the KieSessionHelper kie session for evaluation of rules
        Parameters:
        kieSessionClass - implementation class of the Kie session (KieSession or StatelessKieSession)
        context - instance of RuleEvaluationContext
        kieContainer - currently active instance of KieContainer
        Returns:
        initialized instance of KieSession
      • shutdownKieSessionPools

        void shutdownKieSessionPools​(java.lang.String moduleName,
                                     java.lang.String version)
        Shuts down the kie session pool (if enabled and existing) for the given rule module and version. This method is invoked after a new rule module has been published successfully.
        Parameters:
        moduleName - the rule module name
        version - the rule module version