use of org.camunda.bpm.engine.history.HistoricExternalTaskLog in project camunda-bpm-platform by camunda.
the class HistoricExternalTaskLogQueryTest method testQueryByExternalTaskId.
@Test
public void testQueryByExternalTaskId() {
// given
startExternalTaskProcesses(2);
String logExternalTaskId = retrieveFirstHistoricExternalTaskLog().getExternalTaskId();
// when
HistoricExternalTaskLog log = historyService.createHistoricExternalTaskLogQuery().externalTaskId(logExternalTaskId).singleResult();
// then
assertNotNull(log);
assertThat(log.getExternalTaskId(), is(logExternalTaskId));
}
use of org.camunda.bpm.engine.history.HistoricExternalTaskLog in project camunda-bpm-platform by camunda.
the class HistoricExternalTaskLogQueryTest method testQueryByProcessInstanceId.
@Test
public void testQueryByProcessInstanceId() {
// given
startExternalTaskProcesses(2);
String processInstanceId = retrieveFirstHistoricExternalTaskLog().getProcessInstanceId();
// when
HistoricExternalTaskLog log = historyService.createHistoricExternalTaskLogQuery().processInstanceId(processInstanceId).singleResult();
// then
assertNotNull(log);
assertThat(log.getProcessInstanceId(), is(processInstanceId));
}
Aggregations