use of org.camunda.bpm.engine.history.HistoricDecisionInstance in project camunda-bpm-platform by camunda.
the class HistoricDecisionInstanceTest method testDeleteHistoricDecisionInstanceByInstanceId.
@Deployment(resources = { DECISION_PROCESS, DECISION_SINGLE_OUTPUT_DMN })
public void testDeleteHistoricDecisionInstanceByInstanceId() {
// given
startProcessInstanceAndEvaluateDecision();
HistoricDecisionInstanceQuery query = historyService.createHistoricDecisionInstanceQuery().decisionDefinitionKey(DECISION_DEFINITION_KEY);
assertThat(query.count(), is(1L));
HistoricDecisionInstance historicDecisionInstance = query.includeInputs().includeOutputs().singleResult();
// when
historyService.deleteHistoricDecisionInstanceByInstanceId(historicDecisionInstance.getId());
// then
assertThat(query.count(), is(0L));
}
Aggregations