use of org.camunda.bpm.engine.runtime.CaseInstanceQuery in project camunda-bpm-platform by camunda.
the class CaseInstanceQueryTest method testQueryByIntegerVariableValueLessThan.
public void testQueryByIntegerVariableValueLessThan() {
caseService.withCaseDefinitionByKey(CASE_DEFINITION_KEY).setVariable("anIntegerValue", 456).create();
CaseInstanceQuery query = caseService.createCaseInstanceQuery();
query.variableValueLessThan("anIntegerValue", 457);
verifyQueryResults(query, 1);
}
use of org.camunda.bpm.engine.runtime.CaseInstanceQuery in project camunda-bpm-platform by camunda.
the class CaseInstanceQueryTest method testQueryByDoubleVariableValueNotEquals.
public void testQueryByDoubleVariableValueNotEquals() {
caseService.withCaseDefinitionByKey(CASE_DEFINITION_KEY).setVariable("aDoubleValue", 1.5).create();
CaseInstanceQuery query = caseService.createCaseInstanceQuery();
query.variableValueNotEquals("aDoubleValue", 1.6);
verifyQueryResults(query, 1);
}
use of org.camunda.bpm.engine.runtime.CaseInstanceQuery in project camunda-bpm-platform by camunda.
the class CaseInstanceQueryTest method testQueryByByteArrayVariableValueGreaterThanOrEqual.
public void testQueryByByteArrayVariableValueGreaterThanOrEqual() {
byte[] bytes = "somebytes".getBytes();
caseService.withCaseDefinitionByKey(CASE_DEFINITION_KEY).setVariable("aByteArrayValue", bytes).create();
CaseInstanceQuery query = caseService.createCaseInstanceQuery();
try {
query.variableValueGreaterThanOrEqual("aByteArrayValue", bytes).list();
fail();
} catch (ProcessEngineException e) {
}
}
use of org.camunda.bpm.engine.runtime.CaseInstanceQuery in project camunda-bpm-platform by camunda.
the class CaseInstanceQueryTest method testQueryByIntegerVariableValueNotEquals.
public void testQueryByIntegerVariableValueNotEquals() {
caseService.withCaseDefinitionByKey(CASE_DEFINITION_KEY).setVariable("anIntegerValue", 456).create();
CaseInstanceQuery query = caseService.createCaseInstanceQuery();
query.variableValueNotEquals("anIntegerValue", 457);
verifyQueryResults(query, 1);
}
use of org.camunda.bpm.engine.runtime.CaseInstanceQuery in project camunda-bpm-platform by camunda.
the class CaseInstanceQueryTest method testQueryBySerializableVariableValueNotEquals.
public void testQueryBySerializableVariableValueNotEquals() {
List<String> serializable = new ArrayList<String>();
serializable.add("one");
serializable.add("two");
serializable.add("three");
caseService.withCaseDefinitionByKey(CASE_DEFINITION_KEY).setVariable("aSerializableValue", serializable).create();
CaseInstanceQuery query = caseService.createCaseInstanceQuery();
try {
query.variableValueNotEquals("aSerializableValue", serializable).list();
fail();
} catch (ProcessEngineException e) {
}
}
Aggregations