use of org.camunda.bpm.engine.runtime.CaseInstanceQuery in project camunda-bpm-platform by camunda.
the class CaseInstanceQueryTest method testQueryByLongVariableValueGreaterThanOrEqual.
public void testQueryByLongVariableValueGreaterThanOrEqual() {
caseService.withCaseDefinitionByKey(CASE_DEFINITION_KEY).setVariable("aLongValue", (long) 789).create();
CaseInstanceQuery query = caseService.createCaseInstanceQuery();
query.variableValueGreaterThanOrEqual("aLongValue", (long) 788);
verifyQueryResults(query, 1);
query = caseService.createCaseInstanceQuery();
query.variableValueGreaterThanOrEqual("aLongValue", (long) 789);
verifyQueryResults(query, 1);
}
use of org.camunda.bpm.engine.runtime.CaseInstanceQuery in project camunda-bpm-platform by camunda.
the class CaseInstanceQueryTest method testQueryByStringVariableValueLessThanOrEqual.
public void testQueryByStringVariableValueLessThanOrEqual() {
caseService.withCaseDefinitionByKey(CASE_DEFINITION_KEY).setVariable("aStringValue", "abc").create();
CaseInstanceQuery query = caseService.createCaseInstanceQuery();
query.variableValueLessThanOrEqual("aStringValue", "abd");
verifyQueryResults(query, 1);
query = caseService.createCaseInstanceQuery();
query.variableValueLessThanOrEqual("aStringValue", "abc");
verifyQueryResults(query, 1);
}
use of org.camunda.bpm.engine.runtime.CaseInstanceQuery in project camunda-bpm-platform by camunda.
the class CaseInstanceQueryTest method testQueryByActive.
public void testQueryByActive() {
CaseInstanceQuery query = caseService.createCaseInstanceQuery();
query.active();
verifyQueryResults(query, 5);
}
use of org.camunda.bpm.engine.runtime.CaseInstanceQuery in project camunda-bpm-platform by camunda.
the class CaseInstanceQueryTest method testQueryByShortVariableValueNotEquals.
public void testQueryByShortVariableValueNotEquals() {
caseService.withCaseDefinitionByKey(CASE_DEFINITION_KEY).setVariable("aShortValue", (short) 123).create();
CaseInstanceQuery query = caseService.createCaseInstanceQuery();
query.variableValueNotEquals("aShortValue", (short) 124);
verifyQueryResults(query, 1);
}
use of org.camunda.bpm.engine.runtime.CaseInstanceQuery in project camunda-bpm-platform by camunda.
the class CaseInstanceQueryTest method testQueryByByteArrayVariableValueNotEquals.
public void testQueryByByteArrayVariableValueNotEquals() {
byte[] bytes = "somebytes".getBytes();
caseService.withCaseDefinitionByKey(CASE_DEFINITION_KEY).setVariable("aByteArrayValue", bytes).create();
CaseInstanceQuery query = caseService.createCaseInstanceQuery();
try {
query.variableValueNotEquals("aByteArrayValue", bytes).list();
fail();
} catch (ProcessEngineException e) {
}
}
Aggregations