use of org.camunda.bpm.engine.history.HistoricExternalTaskLogQuery in project camunda-bpm-platform by camunda.
the class HistoricExternalTaskLogQuerySortingTest method testQuerySortingByPriorityAsc.
@Test
public void testQuerySortingByPriorityAsc() {
// given
int taskCount = 10;
startProcesses(taskCount);
// when
HistoricExternalTaskLogQuery query = historyService.createHistoricExternalTaskLogQuery();
query.orderByPriority().asc();
// then
verifyQueryWithOrdering(query, taskCount, historicExternalTaskLogByPriority());
}
use of org.camunda.bpm.engine.history.HistoricExternalTaskLogQuery in project camunda-bpm-platform by camunda.
the class HistoricExternalTaskLogQuerySortingTest method testQuerySortingByProcessDefinitionIdAsc.
@Test
public void testQuerySortingByProcessDefinitionIdAsc() {
// given
int taskCount = 8;
startProcesses(taskCount);
// when
HistoricExternalTaskLogQuery query = historyService.createHistoricExternalTaskLogQuery();
query.orderByProcessDefinitionId().asc();
// then
verifyQueryWithOrdering(query, taskCount, historicExternalTaskLogByProcessDefinitionId());
}
use of org.camunda.bpm.engine.history.HistoricExternalTaskLogQuery in project camunda-bpm-platform by camunda.
the class HistoricExternalTaskLogQuerySortingTest method testQuerySortingByActivityInstanceIdAsc.
@Test
public void testQuerySortingByActivityInstanceIdAsc() {
// given
int taskCount = 10;
startProcesses(taskCount);
// when
HistoricExternalTaskLogQuery query = historyService.createHistoricExternalTaskLogQuery();
query.orderByActivityInstanceId().asc();
// then
verifyQueryWithOrdering(query, taskCount, historicExternalTaskLogByActivityInstanceId());
}
use of org.camunda.bpm.engine.history.HistoricExternalTaskLogQuery in project camunda-bpm-platform by camunda.
the class HistoricExternalTaskLogQuerySortingTest method testQuerySortingByTopicNameAsc.
@Test
public void testQuerySortingByTopicNameAsc() {
// given
int taskCount = 10;
startProcessesByTopicName(taskCount);
// when
HistoricExternalTaskLogQuery query = historyService.createHistoricExternalTaskLogQuery();
query.orderByTopicName().asc();
// then
verifyQueryWithOrdering(query, taskCount, historicExternalTaskLogByTopicName());
}
use of org.camunda.bpm.engine.history.HistoricExternalTaskLogQuery in project camunda-bpm-platform by camunda.
the class HistoricExternalTaskLogQuerySortingTest method testQuerySortingByPriorityDsc.
@Test
public void testQuerySortingByPriorityDsc() {
// given
int taskCount = 10;
startProcesses(taskCount);
// when
HistoricExternalTaskLogQuery query = historyService.createHistoricExternalTaskLogQuery();
query.orderByPriority().desc();
// then
verifyQueryWithOrdering(query, taskCount, inverted(historicExternalTaskLogByPriority()));
}
Aggregations