Interface KIEModuleCacheBuilder

All Known Implementing Classes:
DefaultCommerceKIEModuleCacheBuilder, DefaultKIEModuleCacheBuilder

public interface KIEModuleCacheBuilder
The KIEModuleCacheBuilder builds up the cached entities for a single AbstractRulesModuleModel. The cache builder is created during rule module initialization (see RuleEngineService.initialize(AbstractRulesModuleModel, String, boolean, boolean, RuleEngineActionResult)) and stores 'cache-able' entities (i.e. facts, globals etc.) of all rules that have been processed by the cache builder (see processRule(AbstractRuleEngineRuleModel)). Once rule module initialization finishes, the cache built up cache is added to the global cache (see RuleEngineCacheService.addToCache(KIEModuleCacheBuilder)
  • Method Summary

    Modifier and Type
    Method
    Description
    processRule(T rule)
    processes the given rule by adding it's cache-able data (e.g.
  • Method Details

    • processRule

      <T extends AbstractRuleEngineRuleModel> void processRule(T rule)
      processes the given rule by adding it's cache-able data (e.g. it's globals and "static" facts) to its internal caching structures.
      Parameters:
      rule - the rule for which to add the cache-able data