use of org.camunda.bpm.engine.impl.history.event.HistoricDecisionEvaluationEvent in project camunda-bpm-platform by camunda.
the class DefaultDmnHistoryEventProducer method createHistoryEvent.
protected HistoryEvent createHistoryEvent(DmnDecisionEvaluationEvent evaluationEvent, HistoricDecisionInstanceSupplier supplier) {
HistoricDecisionEvaluationEvent event = newDecisionEvaluationEvent(evaluationEvent);
HistoricDecisionInstanceEntity rootDecisionEvent = supplier.createHistoricDecisionInstance(evaluationEvent.getDecisionResult());
event.setRootHistoricDecisionInstance(rootDecisionEvent);
List<HistoricDecisionInstanceEntity> requiredDecisionEvents = new ArrayList<HistoricDecisionInstanceEntity>();
for (DmnDecisionLogicEvaluationEvent requiredDecisionResult : evaluationEvent.getRequiredDecisionResults()) {
HistoricDecisionInstanceEntity requiredDecisionEvent = supplier.createHistoricDecisionInstance(requiredDecisionResult);
requiredDecisionEvents.add(requiredDecisionEvent);
}
event.setRequiredHistoricDecisionInstances(requiredDecisionEvents);
return event;
}
Aggregations