Class DefaultRuleAndRuleGroupExecutionTracker
java.lang.Object
de.hybris.platform.droolsruleengineservices.agendafilter.impl.DefaultRuleAndRuleGroupExecutionTracker
- All Implemented Interfaces:
RuleAndRuleGroupExecutionTracker
public class DefaultRuleAndRuleGroupExecutionTracker
extends Object
implements RuleAndRuleGroupExecutionTracker
Used during rule execution to track and control rule execution
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanallowedToExecute(Object theRule) returns true if the rule is allowed to be executed, otherwise falseprotected intgetMaximumRuleExecutions(org.kie.api.definition.rule.Rule rule) protected StringgetMetaData(org.kie.api.definition.rule.Rule rule, String key) protected StringgetRuleCode(org.kie.api.definition.rule.Rule rule) protected StringgetRuleGroupCode(org.kie.api.definition.rule.Rule rule) protected booleanisRuleGroupExclusive(org.kie.api.definition.rule.Rule rule) voidtrackActionExecutionStarted(String ruleCode) tracks that an action of the given rule code has been executed successfullyvoidtrackRuleExecution(Object kcontext) tracks that the invoking rule (and its rule group) has been executed successfully
-
Constructor Details
-
DefaultRuleAndRuleGroupExecutionTracker
public DefaultRuleAndRuleGroupExecutionTracker()
-
-
Method Details
-
allowedToExecute
Description copied from interface:RuleAndRuleGroupExecutionTrackerreturns true if the rule is allowed to be executed, otherwise false- Specified by:
allowedToExecutein interfaceRuleAndRuleGroupExecutionTracker
-
trackActionExecutionStarted
Description copied from interface:RuleAndRuleGroupExecutionTrackertracks that an action of the given rule code has been executed successfully- Specified by:
trackActionExecutionStartedin interfaceRuleAndRuleGroupExecutionTracker
-
trackRuleExecution
Description copied from interface:RuleAndRuleGroupExecutionTrackertracks that the invoking rule (and its rule group) has been executed successfully- Specified by:
trackRuleExecutionin interfaceRuleAndRuleGroupExecutionTracker
-
getMaximumRuleExecutions
protected int getMaximumRuleExecutions(org.kie.api.definition.rule.Rule rule) -
isRuleGroupExclusive
protected boolean isRuleGroupExclusive(org.kie.api.definition.rule.Rule rule) -
getRuleGroupCode
-
getRuleCode
-
getMetaData
-
getExecutedRules
-
getExecutedRuleGroups
-
getActionsInvoked
-