use of org.camunda.bpm.engine.impl.metrics.dmn.MetricsDecisionEvaluationListener in project camunda-bpm-platform by camunda.
the class DmnEngineConfigurationBuilder method createCustomPostDecisionEvaluationListeners.
protected List<DmnDecisionEvaluationListener> createCustomPostDecisionEvaluationListeners() {
ensureNotNull("dmnHistoryEventProducer", dmnHistoryEventProducer);
// note that the history level may be null - see CAM-5165
HistoryDecisionEvaluationListener historyDecisionEvaluationListener = new HistoryDecisionEvaluationListener(dmnHistoryEventProducer, historyLevel);
List<DmnDecisionEvaluationListener> customPostDecisionEvaluationListeners = dmnEngineConfiguration.getCustomPostDecisionEvaluationListeners();
customPostDecisionEvaluationListeners.add(new MetricsDecisionEvaluationListener());
customPostDecisionEvaluationListeners.add(historyDecisionEvaluationListener);
return customPostDecisionEvaluationListeners;
}
Aggregations