use of org.camunda.bpm.engine.history.HistoricJobLogQuery in project camunda-bpm-platform by camunda.
the class HistoricJobLogQueryTest method testQueryByActivityId.
@Deployment(resources = { "org/camunda/bpm/engine/test/history/HistoricJobLogTest.testAsyncContinuation.bpmn20.xml" })
public void testQueryByActivityId() {
runtimeService.startProcessInstanceByKey("process");
HistoricJobLogQuery query = historyService.createHistoricJobLogQuery().activityIdIn("serviceTask");
verifyQueryResults(query, 1);
}
use of org.camunda.bpm.engine.history.HistoricJobLogQuery in project camunda-bpm-platform by camunda.
the class HistoricJobLogQueryTest method testQueryByDeletionLog.
@Deployment(resources = { "org/camunda/bpm/engine/test/history/HistoricJobLogTest.testAsyncContinuation.bpmn20.xml" })
public void testQueryByDeletionLog() {
String processInstanceId = runtimeService.startProcessInstanceByKey("process").getId();
runtimeService.deleteProcessInstance(processInstanceId, null);
HistoricJobLogQuery query = historyService.createHistoricJobLogQuery().deletionLog();
verifyQueryResults(query, 1);
}
use of org.camunda.bpm.engine.history.HistoricJobLogQuery in project camunda-bpm-platform by camunda.
the class HistoricJobLogQueryTest method testQueryByInvalidJobExceptionMessage.
public void testQueryByInvalidJobExceptionMessage() {
HistoricJobLogQuery query = historyService.createHistoricJobLogQuery().jobExceptionMessage("invalid");
verifyQueryResults(query, 0);
try {
query.jobExceptionMessage(null);
fail();
} catch (Exception e) {
}
}
use of org.camunda.bpm.engine.history.HistoricJobLogQuery in project camunda-bpm-platform by camunda.
the class HistoricJobLogQueryTest method testQueryByProcessDefinitionKey.
@Deployment(resources = { "org/camunda/bpm/engine/test/history/HistoricJobLogTest.testAsyncContinuation.bpmn20.xml" })
public void testQueryByProcessDefinitionKey() {
runtimeService.startProcessInstanceByKey("process");
String processDefinitionKey = managementService.createJobQuery().singleResult().getProcessDefinitionKey();
HistoricJobLogQuery query = historyService.createHistoricJobLogQuery().processDefinitionKey(processDefinitionKey);
verifyQueryResults(query, 1);
}
use of org.camunda.bpm.engine.history.HistoricJobLogQuery in project camunda-bpm-platform by camunda.
the class HistoricJobLogQueryTest method testQuery.
@Deployment(resources = { "org/camunda/bpm/engine/test/history/HistoricJobLogTest.testAsyncContinuation.bpmn20.xml" })
public void testQuery() {
runtimeService.startProcessInstanceByKey("process");
HistoricJobLogQuery query = historyService.createHistoricJobLogQuery();
verifyQueryResults(query, 1);
}
Aggregations