Interface DmnHitPolicyHandler
-
- All Known Implementing Classes:
AbstractCollectNumberHitPolicyHandler
,AnyHitPolicyHandler
,CollectCountHitPolicyHandler
,CollectHitPolicyHandler
,CollectMaxHitPolicyHandler
,CollectMinHitPolicyHandler
,CollectSumHitPolicyHandler
,FirstHitPolicyHandler
,RuleOrderHitPolicyHandler
,UniqueHitPolicyHandler
public interface DmnHitPolicyHandler
Handler for a DMN decision table hit policy.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DmnDecisionTableEvaluationEvent
apply(DmnDecisionTableEvaluationEvent decisionTableEvaluationEvent)
Applies hit policy.HitPolicyEntry
getHitPolicyEntry()
-
-
-
Method Detail
-
apply
DmnDecisionTableEvaluationEvent apply(DmnDecisionTableEvaluationEvent decisionTableEvaluationEvent)
Applies hit policy. Depending on the hit policy this can mean filtering and sorting of matching rules or aggregating results.- Parameters:
decisionTableEvaluationEvent
- the evaluation event of the decision table- Returns:
- the final evaluation result
- Throws:
DmnEngineException
- if the hit policy cannot be applied to the decision outputs
-
getHitPolicyEntry
HitPolicyEntry getHitPolicyEntry()
- Returns:
- the implemented hit policy and aggregator
-
-