use of org.camunda.bpm.engine.history.HistoricJobLogQuery in project camunda-bpm-platform by camunda.
the class HistoricJobLogQueryTest method testQueryByInvalidProcessDefinitionId.
public void testQueryByInvalidProcessDefinitionId() {
HistoricJobLogQuery query = historyService.createHistoricJobLogQuery().processDefinitionId("invalid");
verifyQueryResults(query, 0);
try {
query.processDefinitionId(null);
fail();
} catch (Exception e) {
}
}
use of org.camunda.bpm.engine.history.HistoricJobLogQuery in project camunda-bpm-platform by camunda.
the class HistoricJobLogQueryTest method testQueryByDeploymentId.
@Deployment(resources = { "org/camunda/bpm/engine/test/history/HistoricJobLogTest.testAsyncContinuation.bpmn20.xml" })
public void testQueryByDeploymentId() {
runtimeService.startProcessInstanceByKey("process");
String deploymentId = managementService.createJobQuery().singleResult().getDeploymentId();
HistoricJobLogQuery query = historyService.createHistoricJobLogQuery().deploymentId(deploymentId);
verifyQueryResults(query, 1);
}
use of org.camunda.bpm.engine.history.HistoricJobLogQuery in project camunda-bpm-platform by camunda.
the class HistoricJobLogQueryTest method testQueryByInvalidProcessInstanceId.
public void testQueryByInvalidProcessInstanceId() {
HistoricJobLogQuery query = historyService.createHistoricJobLogQuery().processInstanceId("invalid");
verifyQueryResults(query, 0);
try {
query.processInstanceId(null);
fail();
} catch (Exception e) {
}
}
use of org.camunda.bpm.engine.history.HistoricJobLogQuery in project camunda-bpm-platform by camunda.
the class HistoricJobLogQueryTest method testQueryByJobDefinitionConfiguration.
@Deployment(resources = { "org/camunda/bpm/engine/test/history/HistoricJobLogTest.testAsyncContinuation.bpmn20.xml" })
public void testQueryByJobDefinitionConfiguration() {
runtimeService.startProcessInstanceByKey("process");
HistoricJobLogQuery query = historyService.createHistoricJobLogQuery().jobDefinitionConfiguration(MessageJobDeclaration.ASYNC_BEFORE);
verifyQueryResults(query, 1);
}
use of org.camunda.bpm.engine.history.HistoricJobLogQuery in project camunda-bpm-platform by camunda.
the class HistoricJobLogQueryTest method testQueryByProcessInstanceId.
@Deployment(resources = { "org/camunda/bpm/engine/test/history/HistoricJobLogTest.testAsyncContinuation.bpmn20.xml" })
public void testQueryByProcessInstanceId() {
runtimeService.startProcessInstanceByKey("process");
String processInstanceId = managementService.createJobQuery().singleResult().getProcessInstanceId();
HistoricJobLogQuery query = historyService.createHistoricJobLogQuery().processInstanceId(processInstanceId);
verifyQueryResults(query, 1);
}
Aggregations