Class UniqueHitPolicyHandler
- java.lang.Object
-
- org.camunda.bpm.dmn.engine.impl.hitpolicy.UniqueHitPolicyHandler
-
- All Implemented Interfaces:
DmnHitPolicyHandler
public class UniqueHitPolicyHandler extends java.lang.Object implements DmnHitPolicyHandler
-
-
Field Summary
Fields Modifier and Type Field Description protected static HitPolicyEntry
HIT_POLICY
static DmnHitPolicyLogger
LOG
-
Constructor Summary
Constructors Constructor Description UniqueHitPolicyHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DmnDecisionTableEvaluationEvent
apply(DmnDecisionTableEvaluationEvent decisionTableEvaluationEvent)
Applies hit policy.HitPolicyEntry
getHitPolicyEntry()
java.lang.String
toString()
-
-
-
Field Detail
-
LOG
public static final DmnHitPolicyLogger LOG
-
HIT_POLICY
protected static final HitPolicyEntry HIT_POLICY
-
-
Method Detail
-
apply
public DmnDecisionTableEvaluationEvent apply(DmnDecisionTableEvaluationEvent decisionTableEvaluationEvent)
Description copied from interface:DmnHitPolicyHandler
Applies hit policy. Depending on the hit policy this can mean filtering and sorting of matching rules or aggregating results.- Specified by:
apply
in interfaceDmnHitPolicyHandler
- Parameters:
decisionTableEvaluationEvent
- the evaluation event of the decision table- Returns:
- the final evaluation result
-
getHitPolicyEntry
public HitPolicyEntry getHitPolicyEntry()
- Specified by:
getHitPolicyEntry
in interfaceDmnHitPolicyHandler
- Returns:
- the implemented hit policy and aggregator
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-