use of org.camunda.bpm.engine.history.HistoricExternalTaskLogQuery in project camunda-bpm-platform by camunda.
the class HistoricExternalTaskLogQuerySortingTest method testQuerySortingByWorkerIdAsc.
@Test
public void testQuerySortingByWorkerIdAsc() {
// given
int taskCount = 10;
List<ExternalTask> list = startProcesses(taskCount);
completeExternalTasksWithWorkers(list);
// when
HistoricExternalTaskLogQuery query = historyService.createHistoricExternalTaskLogQuery();
query.successLog().orderByWorkerId().asc();
// then
verifyQueryWithOrdering(query, taskCount, historicExternalTaskLogByWorkerId());
}
use of org.camunda.bpm.engine.history.HistoricExternalTaskLogQuery in project camunda-bpm-platform by camunda.
the class HistoricExternalTaskLogQuerySortingTest method testQuerySortingByTaskIdDsc.
@Test
public void testQuerySortingByTaskIdDsc() {
// given
int taskCount = 10;
startProcesses(taskCount);
// when
HistoricExternalTaskLogQuery query = historyService.createHistoricExternalTaskLogQuery();
query.orderByExternalTaskId().desc();
// then
verifyQueryWithOrdering(query, taskCount, inverted(historicExternalTaskLogByExternalTaskId()));
}
use of org.camunda.bpm.engine.history.HistoricExternalTaskLogQuery in project camunda-bpm-platform by camunda.
the class HistoricExternalTaskLogQuerySortingTest method testQuerySortingByProcessDefinitionKeyAsc.
@Test
public void testQuerySortingByProcessDefinitionKeyAsc() {
// given
int taskCount = 10;
startProcessesByProcessDefinitionKey(taskCount);
// when
HistoricExternalTaskLogQuery query = historyService.createHistoricExternalTaskLogQuery();
query.orderByProcessDefinitionKey().asc();
// then
verifyQueryWithOrdering(query, taskCount, historicExternalTaskLogByProcessDefinitionKey(engineRule.getProcessEngine()));
}
use of org.camunda.bpm.engine.history.HistoricExternalTaskLogQuery in project camunda-bpm-platform by camunda.
the class HistoricExternalTaskLogQuerySortingTest method testQuerySortingByTimestampAsc.
@Test
public void testQuerySortingByTimestampAsc() {
// given
int taskCount = 10;
startProcesses(taskCount);
// when
HistoricExternalTaskLogQuery query = historyService.createHistoricExternalTaskLogQuery();
query.orderByTimestamp().asc();
// then
verifyQueryWithOrdering(query, taskCount, historicExternalTaskByTimestamp());
}
Aggregations