org.camunda.bpm.dmn.engine.impl.hitpolicy
Class AbstractCollectNumberHitPolicyHandler

java.lang.Object
  extended by org.camunda.bpm.dmn.engine.impl.hitpolicy.AbstractCollectNumberHitPolicyHandler
All Implemented Interfaces:
DmnHitPolicyHandler
Direct Known Subclasses:
CollectCountHitPolicyHandler, CollectMaxHitPolicyHandler, CollectMinHitPolicyHandler, CollectSumHitPolicyHandler

public abstract class AbstractCollectNumberHitPolicyHandler
extends Object
implements DmnHitPolicyHandler


Field Summary
static DmnHitPolicyLogger LOG
           
 
Constructor Summary
AbstractCollectNumberHitPolicyHandler()
           
 
Method Summary
protected abstract  Double aggregateDoubleValues(List<Double> doubleValues)
           
protected abstract  Integer aggregateIntegerValues(List<Integer> intValues)
           
protected abstract  Long aggregateLongValues(List<Long> longValues)
           
protected  org.camunda.bpm.engine.variable.value.TypedValue aggregateNumberValues(List<org.camunda.bpm.engine.variable.value.TypedValue> values)
           
protected  org.camunda.bpm.engine.variable.value.TypedValue aggregateValues(List<org.camunda.bpm.engine.variable.value.TypedValue> values)
           
 DmnDecisionTableEvaluationEvent apply(DmnDecisionTableEvaluationEvent decisionTableEvaluationEvent)
          Applies hit policy.
protected  List<org.camunda.bpm.engine.variable.value.TypedValue> collectSingleValues(DmnDecisionTableEvaluationEvent decisionTableEvaluationEvent)
           
protected  List<Double> convertValuesToDouble(List<org.camunda.bpm.engine.variable.value.TypedValue> typedValues)
           
protected  List<Integer> convertValuesToInteger(List<org.camunda.bpm.engine.variable.value.TypedValue> typedValues)
           
protected  List<Long> convertValuesToLong(List<org.camunda.bpm.engine.variable.value.TypedValue> typedValues)
           
protected abstract  org.camunda.bpm.model.dmn.BuiltinAggregator getAggregator()
           
protected  String getResultName(DmnDecisionTableEvaluationEvent decisionTableEvaluationEvent)
           
protected  org.camunda.bpm.engine.variable.value.TypedValue getResultValue(DmnDecisionTableEvaluationEvent decisionTableEvaluationEvent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.camunda.bpm.dmn.engine.impl.spi.hitpolicy.DmnHitPolicyHandler
getHitPolicyEntry
 

Field Detail

LOG

public static final DmnHitPolicyLogger LOG
Constructor Detail

AbstractCollectNumberHitPolicyHandler

public AbstractCollectNumberHitPolicyHandler()
Method Detail

getAggregator

protected abstract org.camunda.bpm.model.dmn.BuiltinAggregator getAggregator()

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 interface DmnHitPolicyHandler
Parameters:
decisionTableEvaluationEvent - the evaluation event of the decision table
Returns:
the final evaluation result

getResultName

protected String getResultName(DmnDecisionTableEvaluationEvent decisionTableEvaluationEvent)

getResultValue

protected org.camunda.bpm.engine.variable.value.TypedValue getResultValue(DmnDecisionTableEvaluationEvent decisionTableEvaluationEvent)

collectSingleValues

protected List<org.camunda.bpm.engine.variable.value.TypedValue> collectSingleValues(DmnDecisionTableEvaluationEvent decisionTableEvaluationEvent)

aggregateValues

protected org.camunda.bpm.engine.variable.value.TypedValue aggregateValues(List<org.camunda.bpm.engine.variable.value.TypedValue> values)

aggregateNumberValues

protected org.camunda.bpm.engine.variable.value.TypedValue aggregateNumberValues(List<org.camunda.bpm.engine.variable.value.TypedValue> values)

aggregateIntegerValues

protected abstract Integer aggregateIntegerValues(List<Integer> intValues)

aggregateLongValues

protected abstract Long aggregateLongValues(List<Long> longValues)

aggregateDoubleValues

protected abstract Double aggregateDoubleValues(List<Double> doubleValues)

convertValuesToInteger

protected List<Integer> convertValuesToInteger(List<org.camunda.bpm.engine.variable.value.TypedValue> typedValues)
                                        throws IllegalArgumentException
Throws:
IllegalArgumentException

convertValuesToLong

protected List<Long> convertValuesToLong(List<org.camunda.bpm.engine.variable.value.TypedValue> typedValues)
                                  throws IllegalArgumentException
Throws:
IllegalArgumentException

convertValuesToDouble

protected List<Double> convertValuesToDouble(List<org.camunda.bpm.engine.variable.value.TypedValue> typedValues)
                                      throws IllegalArgumentException
Throws:
IllegalArgumentException


Copyright © 2017 camunda services GmbH. All rights reserved.