use of org.camunda.bpm.engine.history.HistoricExternalTaskLogQuery in project camunda-bpm-platform by camunda.
the class HistoricExternalTaskLogQuerySortingTest method testQuerySortingByActivityIdDsc.
@Test
public void testQuerySortingByActivityIdDsc() {
// given
int taskCount = 10;
startProcessesByActivityId(taskCount);
// when
HistoricExternalTaskLogQuery query = historyService.createHistoricExternalTaskLogQuery();
query.orderByActivityId().desc();
// then
verifyQueryWithOrdering(query, taskCount, inverted(historicExternalTaskLogByActivityId()));
}
use of org.camunda.bpm.engine.history.HistoricExternalTaskLogQuery in project camunda-bpm-platform by camunda.
the class HistoricExternalTaskLogQuerySortingTest method testQuerySortingByProcessDefinitionKeyDsc.
@Test
public void testQuerySortingByProcessDefinitionKeyDsc() {
// given
int taskCount = 10;
startProcessesByProcessDefinitionKey(taskCount);
// when
HistoricExternalTaskLogQuery query = historyService.createHistoricExternalTaskLogQuery();
query.orderByProcessDefinitionKey().desc();
// then
verifyQueryWithOrdering(query, taskCount, inverted(historicExternalTaskLogByProcessDefinitionKey(engineRule.getProcessEngine())));
}
use of org.camunda.bpm.engine.history.HistoricExternalTaskLogQuery in project camunda-bpm-platform by camunda.
the class HistoricExternalTaskLogQuerySortingTest method testQuerySortingByActivityInstanceIdDsc.
@Test
public void testQuerySortingByActivityInstanceIdDsc() {
// given
int taskCount = 10;
startProcesses(taskCount);
// when
HistoricExternalTaskLogQuery query = historyService.createHistoricExternalTaskLogQuery();
query.orderByActivityInstanceId().desc();
// then
verifyQueryWithOrdering(query, taskCount, inverted(historicExternalTaskLogByActivityInstanceId()));
}
use of org.camunda.bpm.engine.history.HistoricExternalTaskLogQuery in project camunda-bpm-platform by camunda.
the class HistoricExternalTaskLogQuerySortingTest method testQuerySortingByExecutionIdDsc.
@Test
public void testQuerySortingByExecutionIdDsc() {
// given
int taskCount = 10;
startProcesses(taskCount);
// when
HistoricExternalTaskLogQuery query = historyService.createHistoricExternalTaskLogQuery();
query.orderByExecutionId().desc();
// then
verifyQueryWithOrdering(query, taskCount, inverted(historicExternalTaskLogByExecutionId()));
}
use of org.camunda.bpm.engine.history.HistoricExternalTaskLogQuery in project camunda-bpm-platform by camunda.
the class HistoricExternalTaskLogQuerySortingTest method testQuerySortingByTopicNameDsc.
@Test
public void testQuerySortingByTopicNameDsc() {
// given
int taskCount = 10;
startProcessesByTopicName(taskCount);
// when
HistoricExternalTaskLogQuery query = historyService.createHistoricExternalTaskLogQuery();
query.orderByTopicName().desc();
// then
verifyQueryWithOrdering(query, taskCount, inverted(historicExternalTaskLogByTopicName()));
}
Aggregations