public interface RuleEngineCacheService
createKIEModuleCacheBuilder(DroolsKIEModuleModel). The KIEModuleCacheBuilder is then filled using
its KIEModuleCacheBuilder.processRule(AbstractRuleEngineRuleModel)
during rule module initialization. The addToCache(KIEModuleCacheBuilder) is used to add the cache to the
cache service (and replace any previously existing cache for that module).
During rule evaluation the provideCachedEntities(RuleEvaluationContext) is invoked to enhance the given rule
evaluation context with the cached entities.| Modifier and Type | Method and Description |
|---|---|
void |
addToCache(KIEModuleCacheBuilder cacheBuilder)
adds the cached entities of the given cache builder to the global caching structure.
|
KIEModuleCacheBuilder |
createKIEModuleCacheBuilder(DroolsKIEModuleModel kieModule)
creates a KIEModuleCacheBuilder object for the given kieModule.
|
void |
provideCachedEntities(RuleEvaluationContext context)
is invoked during
DefaultPlatformRuleEngineService.evaluate(de.hybris.platform.ruleengine.RuleEvaluationContext) and adds
any cached entities (such as globals or facts) to the given context. |
KIEModuleCacheBuilder createKIEModuleCacheBuilder(DroolsKIEModuleModel kieModule)
KIEModuleCacheBuilder.processRule(AbstractRuleEngineRuleModel).
In order to add the cache for the module use addToCache(KIEModuleCacheBuilder).kieModule - the instance of DroolsKIEModuleModel for which to create the cached itemsvoid addToCache(KIEModuleCacheBuilder cacheBuilder)
cacheBuilder - the cache builder to usevoid provideCachedEntities(RuleEvaluationContext context)
DefaultPlatformRuleEngineService.evaluate(de.hybris.platform.ruleengine.RuleEvaluationContext) and adds
any cached entities (such as globals or facts) to the given context.context - the context object to enhance with factsCopyright © 2018 SAP SE. All Rights Reserved.