Class DroolsRuleLoopException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
de.hybris.platform.ruleengine.exception.RuleEngineRuntimeException
de.hybris.platform.ruleengine.exception.DroolsRuleLoopException
- All Implemented Interfaces:
Serializable
DroolsRuleLoopException indicates that a potentially infinite loop has been detected (based on the fact that a rule
has been fired more than
limit times.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDroolsRuleLoopException(long limit, Map<org.kie.api.definition.rule.Rule, Long> ruleMap) -
Method Summary
Modifier and TypeMethodDescriptionReturns an ordered list of strings for all rules that have fired during the rule evaluation.longgetLimit()Returns the 10 most fired rules and its firing count.getRuleFirings(long size) Returns the list of strings as described ingetAllRuleFirings()but limited bysize.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
DroolsRuleLoopException
-
-
Method Details
-
getLimit
public long getLimit() -
getAllRuleFirings
Returns an ordered list of strings for all rules that have fired during the rule evaluation. Each string represents how often a specific rule has fired. The result is in the format:$firedCount:$Rule.id, e.g.100:Rule Number 14- Returns:
- the list of all rule firings
-
getRuleFirings
Returns the list of strings as described ingetAllRuleFirings()but limited bysize.- Parameters:
size- limit the list of strings returned- Returns:
- the list of the
sizemost often fired rules
-
getMessage
Returns the 10 most fired rules and its firing count.- Overrides:
getMessagein classThrowable
-