use of org.camunda.bpm.engine.impl.history.event.HistoricDecisionInputInstanceEntity in project camunda-bpm-platform by camunda.
the class DefaultDmnHistoryEventProducer method createHistoricDecisionInputInstances.
protected List<HistoricDecisionInputInstance> createHistoricDecisionInputInstances(DmnDecisionTableEvaluationEvent evaluationEvent) {
List<HistoricDecisionInputInstance> inputInstances = new ArrayList<HistoricDecisionInputInstance>();
for (DmnEvaluatedInput inputClause : evaluationEvent.getInputs()) {
HistoricDecisionInputInstanceEntity inputInstance = new HistoricDecisionInputInstanceEntity();
inputInstance.setClauseId(inputClause.getId());
inputInstance.setClauseName(inputClause.getName());
TypedValue typedValue = Variables.untypedValue(inputClause.getValue());
inputInstance.setValue(typedValue);
inputInstances.add(inputInstance);
}
return inputInstances;
}
use of org.camunda.bpm.engine.impl.history.event.HistoricDecisionInputInstanceEntity in project camunda-bpm-platform by camunda.
the class BulkHistoryDeleteTest method collectHistoricDecisionInputIds.
private void collectHistoricDecisionInputIds(List<HistoricDecisionInstance> historicDecisionInstances, List<String> historicDecisionInputIds, List<String> inputByteArrayIds) {
for (HistoricDecisionInstance historicDecisionInstance : historicDecisionInstances) {
for (HistoricDecisionInputInstance inputInstanceEntity : historicDecisionInstance.getInputs()) {
historicDecisionInputIds.add(inputInstanceEntity.getId());
final String byteArrayValueId = ((HistoricDecisionInputInstanceEntity) inputInstanceEntity).getByteArrayValueId();
if (byteArrayValueId != null) {
inputByteArrayIds.add(byteArrayValueId);
}
}
}
assertEquals(PROCESS_INSTANCE_COUNT, historicDecisionInputIds.size());
}
Aggregations