Interface IncrementalRuleEngineUpdateStrategy
- All Known Implementing Classes:
DefaultIncrementalRuleEngineUpdateStrategy
public interface IncrementalRuleEngineUpdateStrategy
Incremental rules engine update strategy interface.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanshouldUpdateIncrementally(org.kie.api.builder.ReleaseId releaseId, String moduleName, Collection<DroolsRuleModel> rulesToAdd, Collection<DroolsRuleModel> rulesToRemove) Given the rules module and the list (per kie base) of rules to add and remove, returns true if the incremental update would be the better strategy, false otherwise
-
Method Details
-
shouldUpdateIncrementally
boolean shouldUpdateIncrementally(org.kie.api.builder.ReleaseId releaseId, String moduleName, Collection<DroolsRuleModel> rulesToAdd, Collection<DroolsRuleModel> rulesToRemove) Given the rules module and the list (per kie base) of rules to add and remove, returns true if the incremental update would be the better strategy, false otherwise- Parameters:
releaseId- instance of currently deployed kie containerReleaseIdmoduleName- name of the rules modulerulesToAdd- collection of drool rules to be added or updatedrulesToRemove- collection of drool rules to be removed- Returns:
- true if the incremental rule engine update should be applied, false otherwise
-