public class EngineRulePreconditions
extends java.lang.Object
AbstractRuleEngineRuleModel subclasses| Modifier and Type | Method and Description |
|---|---|
static <T extends AbstractRuleEngineRuleModel> |
checkRuleHasKieModule(T rule)
Verify if the engine rule is associated with any KIE module, throw
IllegalStateException otherwise |
static <T extends SourceRuleModel> |
checkRulesCanBePublished(java.util.Collection<T> engineRules)
Deprecated.
since 1811
|
static <T extends SourceRuleModel> |
checkRulesCanBeUndeployed(java.util.Collection<T> engineRules)
Deprecated.
since 1811
|
static <T extends AbstractRuleEngineRuleModel> |
checkRulesHaveSameType(java.util.Collection<T> engineRules)
Verify if all the rules in the collection are of the same type.
|
public static <T extends AbstractRuleEngineRuleModel> void checkRulesHaveSameType(java.util.Collection<T> engineRules)
IllegalStateException otherwiseT - type of the engine ruleengineRules - collection of engine rulesjava.lang.IllegalStateException - if rule type is not the same@Deprecated public static <T extends SourceRuleModel> void checkRulesCanBeUndeployed(java.util.Collection<T> engineRules)
IllegalStateException otherwiseT - type of the engine ruleengineRules - collection of source rules SourceRuleModeljava.lang.IllegalStateException - if rule status is RuleStatus.ARCHIVED@Deprecated public static <T extends SourceRuleModel> void checkRulesCanBePublished(java.util.Collection<T> engineRules)
IllegalStateException otherwiseT - type of the engine ruleengineRules - collection of source rules SourceRuleModeljava.lang.IllegalStateException - if rule status is RuleStatus.ARCHIVEDpublic static <T extends AbstractRuleEngineRuleModel> void checkRuleHasKieModule(T rule)
IllegalStateException otherwiseT - type of the engine rulerule - engine rule to checkjava.lang.IllegalStateException - if any given rule has no KIE moduleCopyright © 2018 SAP SE. All Rights Reserved.