use of org.camunda.bpm.engine.history.HistoricExternalTaskLogQuery in project camunda-bpm-platform by camunda.
the class HistoricExternalTaskLogQuerySortingTest method testQuerySortingByRetriesAsc.
@Test
public void testQuerySortingByRetriesAsc() {
// given
int taskCount = 10;
List<ExternalTask> list = startProcesses(taskCount);
reportExternalTaskFailure(list);
// when
HistoricExternalTaskLogQuery query = historyService.createHistoricExternalTaskLogQuery();
query.failureLog().orderByRetries().asc();
// then
verifyQueryWithOrdering(query, taskCount, historicExternalTaskLogByRetries());
}
use of org.camunda.bpm.engine.history.HistoricExternalTaskLogQuery in project camunda-bpm-platform by camunda.
the class HistoricExternalTaskLogQuerySortingTest method testQuerySortingByProcessDefinitionIdDsc.
@Test
public void testQuerySortingByProcessDefinitionIdDsc() {
// given
int taskCount = 8;
startProcesses(taskCount);
// when
HistoricExternalTaskLogQuery query = historyService.createHistoricExternalTaskLogQuery();
query.orderByProcessDefinitionId().desc();
// then
verifyQueryWithOrdering(query, taskCount, inverted(historicExternalTaskLogByProcessDefinitionId()));
}
use of org.camunda.bpm.engine.history.HistoricExternalTaskLogQuery in project camunda-bpm-platform by camunda.
the class HistoricExternalTaskLogQuerySortingTest method testQuerySortingByProcessInstanceIdAsc.
@Test
public void testQuerySortingByProcessInstanceIdAsc() {
// given
int taskCount = 10;
startProcesses(taskCount);
// when
HistoricExternalTaskLogQuery query = historyService.createHistoricExternalTaskLogQuery();
query.orderByProcessInstanceId().asc();
// then
verifyQueryWithOrdering(query, taskCount, historicExternalTaskLogByProcessInstanceId());
}
use of org.camunda.bpm.engine.history.HistoricExternalTaskLogQuery in project camunda-bpm-platform by camunda.
the class HistoricExternalTaskLogQuerySortingTest method testQuerySortingByProcessInstanceIdDsc.
@Test
public void testQuerySortingByProcessInstanceIdDsc() {
// given
int taskCount = 10;
startProcesses(taskCount);
// when
HistoricExternalTaskLogQuery query = historyService.createHistoricExternalTaskLogQuery();
query.orderByProcessInstanceId().desc();
// then
verifyQueryWithOrdering(query, taskCount, inverted(historicExternalTaskLogByProcessInstanceId()));
}
use of org.camunda.bpm.engine.history.HistoricExternalTaskLogQuery in project camunda-bpm-platform by camunda.
the class HistoricExternalTaskLogQuerySortingTest method testQuerySortingByWorkerIdDsc.
@Test
public void testQuerySortingByWorkerIdDsc() {
// given
int taskCount = 10;
List<ExternalTask> list = startProcesses(taskCount);
completeExternalTasksWithWorkers(list);
// when
HistoricExternalTaskLogQuery query = historyService.createHistoricExternalTaskLogQuery();
query.successLog().orderByWorkerId().desc();
// then
verifyQueryWithOrdering(query, taskCount, inverted(historicExternalTaskLogByWorkerId()));
}
Aggregations