use of org.camunda.bpm.engine.runtime.CaseInstanceQuery in project camunda-bpm-platform by camunda.
the class CaseInstanceQueryTest method testQueryBySuperCaseInstanceId.
@Deployment(resources = { "org/camunda/bpm/engine/test/api/cmmn/oneCaseTaskCase.cmmn" })
public void testQueryBySuperCaseInstanceId() {
String superCaseInstanceId = caseService.createCaseInstanceByKey("oneCaseTaskCase").getId();
CaseInstanceQuery query = caseService.createCaseInstanceQuery().superCaseInstanceId(superCaseInstanceId);
verifyQueryResults(query, 1);
}
use of org.camunda.bpm.engine.runtime.CaseInstanceQuery in project camunda-bpm-platform by camunda.
the class CaseInstanceQueryTest method testQueryByShortVariableValueGreaterThan.
public void testQueryByShortVariableValueGreaterThan() {
caseService.withCaseDefinitionByKey(CASE_DEFINITION_KEY).setVariable("aShortValue", (short) 123).create();
CaseInstanceQuery query = caseService.createCaseInstanceQuery();
query.variableValueGreaterThan("aShortValue", (short) 122);
verifyQueryResults(query, 1);
}
use of org.camunda.bpm.engine.runtime.CaseInstanceQuery in project camunda-bpm-platform by camunda.
the class CaseInstanceQueryTest method testQueryByStringVariableValueLessThan.
public void testQueryByStringVariableValueLessThan() {
caseService.withCaseDefinitionByKey(CASE_DEFINITION_KEY).setVariable("aStringValue", "abc").create();
CaseInstanceQuery query = caseService.createCaseInstanceQuery();
query.variableValueLessThan("aStringValue", "abd");
verifyQueryResults(query, 1);
}
use of org.camunda.bpm.engine.runtime.CaseInstanceQuery in project camunda-bpm-platform by camunda.
the class CaseInstanceQueryTest method testQueryBySuperProcessInstanceId.
@Deployment(resources = { "org/camunda/bpm/engine/test/api/runtime/superProcessWithCaseCallActivity.bpmn20.xml" })
public void testQueryBySuperProcessInstanceId() {
String superProcessInstanceId = runtimeService.startProcessInstanceByKey("subProcessQueryTest").getId();
CaseInstanceQuery query = caseService.createCaseInstanceQuery().superProcessInstanceId(superProcessInstanceId);
verifyQueryResults(query, 1);
}
use of org.camunda.bpm.engine.runtime.CaseInstanceQuery in project camunda-bpm-platform by camunda.
the class CaseInstanceQueryTest method testQueryByIntegerVariableValueGreaterThan.
public void testQueryByIntegerVariableValueGreaterThan() {
caseService.withCaseDefinitionByKey(CASE_DEFINITION_KEY).setVariable("anIntegerValue", 456).create();
CaseInstanceQuery query = caseService.createCaseInstanceQuery();
query.variableValueGreaterThan("anIntegerValue", 455);
verifyQueryResults(query, 1);
}
Aggregations