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:
java.io.Serializable
public class DroolsRuleLoopException extends RuleEngineRuntimeException
DroolsRuleLoopException indicates that a potentially infinite loop has been detected (based on the fact that a rule has been fired more thanlimittimes.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DroolsRuleLoopException(long limit, java.util.Map<org.kie.api.definition.rule.Rule,java.lang.Long> ruleMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>getAllRuleFirings()Returns an ordered list of strings for all rules that have fired during the rule evaluation.longgetLimit()java.lang.StringgetMessage()Returns the 10 most fired rules and its firing count.java.util.List<java.lang.String>getRuleFirings(long size)Returns the list of strings as described ingetAllRuleFirings()but limited bysize.
-
-
-
Method Detail
-
getLimit
public long getLimit()
-
getAllRuleFirings
public java.util.List<java.lang.String> 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
public java.util.List<java.lang.String> getRuleFirings(long size)
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
public java.lang.String getMessage()
Returns the 10 most fired rules and its firing count.- Overrides:
getMessagein classjava.lang.Throwable
-
-