use of org.camunda.bpm.engine.runtime.CaseInstanceQuery in project camunda-bpm-platform by camunda.
the class CaseInstanceQueryTest method testQueryByLongVariableValueLessThanOrEqual.
public void testQueryByLongVariableValueLessThanOrEqual() {
caseService.withCaseDefinitionByKey(CASE_DEFINITION_KEY).setVariable("aLongValue", (long) 789).create();
CaseInstanceQuery query = caseService.createCaseInstanceQuery();
query.variableValueLessThanOrEqual("aLongValue", (long) 790);
verifyQueryResults(query, 1);
query = caseService.createCaseInstanceQuery();
query.variableValueLessThanOrEqual("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 testQueryByShortVariableValueGreaterThanOrEqual.
public void testQueryByShortVariableValueGreaterThanOrEqual() {
caseService.withCaseDefinitionByKey(CASE_DEFINITION_KEY).setVariable("aShortValue", (short) 123).create();
CaseInstanceQuery query = caseService.createCaseInstanceQuery();
query.variableValueGreaterThanOrEqual("aShortValue", (short) 122);
verifyQueryResults(query, 1);
query = caseService.createCaseInstanceQuery();
query.variableValueGreaterThanOrEqual("aShortValue", (short) 123);
verifyQueryResults(query, 1);
}
use of org.camunda.bpm.engine.runtime.CaseInstanceQuery in project camunda-bpm-platform by camunda.
the class CaseInstanceQueryTest method testQueryByNullVariableValueLike.
public void testQueryByNullVariableValueLike() {
caseService.withCaseDefinitionByKey(CASE_DEFINITION_KEY).setVariable("aNullValue", null).create();
CaseInstanceQuery query = caseService.createCaseInstanceQuery();
try {
query.variableValueLike("aNullValue", null).list();
fail();
} catch (ProcessEngineException e) {
}
}
use of org.camunda.bpm.engine.runtime.CaseInstanceQuery in project camunda-bpm-platform by camunda.
the class CaseInstanceQueryTest method testQueryByDoubleVariableValueEquals.
public void testQueryByDoubleVariableValueEquals() {
caseService.withCaseDefinitionByKey(CASE_DEFINITION_KEY).setVariable("aDoubleValue", 1.5).create();
CaseInstanceQuery query = caseService.createCaseInstanceQuery();
query.variableValueEquals("aDoubleValue", 1.5);
verifyQueryResults(query, 1);
}
use of org.camunda.bpm.engine.runtime.CaseInstanceQuery in project camunda-bpm-platform by camunda.
the class CaseInstanceQueryTest method testQueryByLongVariableValueGreaterThan.
public void testQueryByLongVariableValueGreaterThan() {
caseService.withCaseDefinitionByKey(CASE_DEFINITION_KEY).setVariable("aLongValue", (long) 789).create();
CaseInstanceQuery query = caseService.createCaseInstanceQuery();
query.variableValueGreaterThan("aLongValue", (long) 788);
verifyQueryResults(query, 1);
}
Aggregations