Search in sources :

Example 1 with HistoryDecisionEvaluationListener

use of org.camunda.bpm.engine.impl.history.parser.HistoryDecisionEvaluationListener 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;
}
Also used : DmnDecisionEvaluationListener(org.camunda.bpm.dmn.engine.delegate.DmnDecisionEvaluationListener) HistoryDecisionEvaluationListener(org.camunda.bpm.engine.impl.history.parser.HistoryDecisionEvaluationListener) MetricsDecisionEvaluationListener(org.camunda.bpm.engine.impl.metrics.dmn.MetricsDecisionEvaluationListener)

Aggregations

DmnDecisionEvaluationListener (org.camunda.bpm.dmn.engine.delegate.DmnDecisionEvaluationListener)1 HistoryDecisionEvaluationListener (org.camunda.bpm.engine.impl.history.parser.HistoryDecisionEvaluationListener)1 MetricsDecisionEvaluationListener (org.camunda.bpm.engine.impl.metrics.dmn.MetricsDecisionEvaluationListener)1