Interface KieSessionHelper<T>

All Superinterfaces:
ModuleReleaseIdAware
All Known Implementing Classes:
DefaultKieSessionHelper

public interface KieSessionHelper<T> extends ModuleReleaseIdAware
helper methods interface for KieSessions
  • Method Details

    • initializeSession

      T initializeSession(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(String moduleName, 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