use of org.camunda.bpm.engine.history.HistoricIncidentQuery in project camunda-bpm-platform by camunda.
the class HistoricIncidentQueryTest method testQueryByIncidentId.
@Test
@Deployment(resources = { "org/camunda/bpm/engine/test/api/runtime/oneFailingServiceProcess.bpmn20.xml" })
public void testQueryByIncidentId() {
startProcessInstance(PROCESS_DEFINITION_KEY);
String incidentId = historyService.createHistoricIncidentQuery().singleResult().getId();
HistoricIncidentQuery query = historyService.createHistoricIncidentQuery().incidentId(incidentId);
assertEquals(1, query.list().size());
assertEquals(1, query.count());
}
Aggregations