use of org.camunda.bpm.engine.history.HistoricDecisionInputInstance 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());
}
use of org.camunda.bpm.engine.history.HistoricDecisionInputInstance in project camunda-bpm-platform by camunda.
the class HistoricDecisionInstanceInputOutputValueTest method decisionInputInstanceValue.
@Test
@Deployment(resources = { DECISION_PROCESS, DECISION_SINGLE_OUTPUT_DMN })
public void decisionInputInstanceValue() {
startProcessInstanceAndEvaluateDecision(inputValue);
HistoricDecisionInstance historicDecisionInstance = engineRule.getHistoryService().createHistoricDecisionInstanceQuery().includeInputs().singleResult();
List<HistoricDecisionInputInstance> inputInstances = historicDecisionInstance.getInputs();
assertThat(inputInstances.size(), is(1));
HistoricDecisionInputInstance inputInstance = inputInstances.get(0);
assertThat(inputInstance.getTypeName(), is(valueType));
assertThat(inputInstance.getValue(), is(inputValue));
}
use of org.camunda.bpm.engine.history.HistoricDecisionInputInstance in project camunda-bpm-platform by camunda.
the class HistoricDecisionInstanceTest method testDecisionInputInstanceProperties.
@Deployment(resources = { DECISION_PROCESS, DECISION_SINGLE_OUTPUT_DMN })
public void testDecisionInputInstanceProperties() {
startProcessInstanceAndEvaluateDecision();
HistoricDecisionInstance historicDecisionInstance = historyService.createHistoricDecisionInstanceQuery().includeInputs().singleResult();
List<HistoricDecisionInputInstance> inputs = historicDecisionInstance.getInputs();
assertThat(inputs, is(notNullValue()));
assertThat(inputs.size(), is(1));
HistoricDecisionInputInstance input = inputs.get(0);
assertThat(input.getDecisionInstanceId(), is(historicDecisionInstance.getId()));
assertThat(input.getClauseId(), is("in"));
assertThat(input.getClauseName(), is("input"));
}
Aggregations