use of org.camunda.bpm.model.dmn.BuiltinAggregator in project camunda-engine-dmn by camunda.
the class DmnDecisionTableTransformHandler method getHitPolicyHandler.
protected DmnHitPolicyHandler getHitPolicyHandler(DmnElementTransformContext context, DecisionTable decisionTable, DmnDecisionTableImpl dmnDecisionTable) {
HitPolicy hitPolicy = decisionTable.getHitPolicy();
if (hitPolicy == null) {
// use default hit policy
hitPolicy = HitPolicy.UNIQUE;
}
BuiltinAggregator aggregation = decisionTable.getAggregation();
DmnHitPolicyHandler hitPolicyHandler = context.getHitPolicyHandlerRegistry().getHandler(hitPolicy, aggregation);
if (hitPolicyHandler != null) {
return hitPolicyHandler;
} else {
throw LOG.hitPolicyNotSupported(dmnDecisionTable, hitPolicy, aggregation);
}
}
Aggregations