use of org.camunda.bpm.engine.history.HistoricJobLogQuery in project camunda-bpm-platform by camunda.
the class HistoricJobLogQueryTest method testQueryByInvalidJobDefinitionType.
public void testQueryByInvalidJobDefinitionType() {
HistoricJobLogQuery query = historyService.createHistoricJobLogQuery().jobDefinitionType("invalid");
verifyQueryResults(query, 0);
try {
query.jobDefinitionType(null);
fail();
} catch (Exception e) {
}
}
use of org.camunda.bpm.engine.history.HistoricJobLogQuery in project camunda-bpm-platform by camunda.
the class HistoricJobLogQueryTest method testQueryByInvalidJobId.
public void testQueryByInvalidJobId() {
HistoricJobLogQuery query = historyService.createHistoricJobLogQuery().jobId("invalid");
verifyQueryResults(query, 0);
try {
query.jobId(null);
fail();
} catch (Exception e) {
}
}
use of org.camunda.bpm.engine.history.HistoricJobLogQuery in project camunda-bpm-platform by camunda.
the class HistoricJobLogQueryTest method testQueryByProcessDefinitionId.
@Deployment(resources = { "org/camunda/bpm/engine/test/history/HistoricJobLogTest.testAsyncContinuation.bpmn20.xml" })
public void testQueryByProcessDefinitionId() {
runtimeService.startProcessInstanceByKey("process");
String processDefinitionId = managementService.createJobQuery().singleResult().getProcessDefinitionId();
HistoricJobLogQuery query = historyService.createHistoricJobLogQuery().processDefinitionId(processDefinitionId);
verifyQueryResults(query, 1);
}
use of org.camunda.bpm.engine.history.HistoricJobLogQuery in project camunda-bpm-platform by camunda.
the class HistoricJobLogQueryTest method testQueryBySuccessLog.
@Deployment(resources = { "org/camunda/bpm/engine/test/history/HistoricJobLogTest.testAsyncContinuation.bpmn20.xml" })
public void testQueryBySuccessLog() {
runtimeService.startProcessInstanceByKey("process", Variables.createVariables().putValue("fail", false));
String jobId = managementService.createJobQuery().singleResult().getId();
managementService.executeJob(jobId);
HistoricJobLogQuery query = historyService.createHistoricJobLogQuery().successLog();
verifyQueryResults(query, 1);
}
use of org.camunda.bpm.engine.history.HistoricJobLogQuery in project camunda-bpm-platform by camunda.
the class HistoricJobLogQueryTest method testQueryByInvalidProcessDefinitionKey.
public void testQueryByInvalidProcessDefinitionKey() {
HistoricJobLogQuery query = historyService.createHistoricJobLogQuery().processDefinitionKey("invalid");
verifyQueryResults(query, 0);
try {
query.processDefinitionKey(null);
fail();
} catch (Exception e) {
}
}
Aggregations