Interface KieSessionHelper<T>
- All Superinterfaces:
ModuleReleaseIdAware
- All Known Implementing Classes:
DefaultKieSessionHelper
helper methods interface for KieSessions
-
Method Summary
Modifier and TypeMethodDescriptioninitializeSession(Class<T> kieSessionClass, RuleEvaluationContext context, org.kie.api.runtime.KieContainer kieContainer) given theRuleEvaluationContextand currently active instance ofKieContainer, initializes theKieSessionHelperkie session for evaluation of rulesvoidshutdownKieSessionPools(String moduleName, String version) Shuts down the kie session pool (if enabled and existing) for the given rule module and version.Methods inherited from interface de.hybris.platform.ruleengine.drools.ModuleReleaseIdAware
getDeployedKieModuleReleaseId
-
Method Details
-
initializeSession
T initializeSession(Class<T> kieSessionClass, RuleEvaluationContext context, org.kie.api.runtime.KieContainer kieContainer) given theRuleEvaluationContextand currently active instance ofKieContainer, initializes theKieSessionHelperkie session for evaluation of rules- Parameters:
kieSessionClass- implementation class of the Kie session (KieSessionorStatelessKieSession)context- instance ofRuleEvaluationContextkieContainer- currently active instance ofKieContainer- Returns:
- initialized instance of
KieSession
-
shutdownKieSessionPools
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 nameversion- the rule module version
-