use of org.camunda.bpm.engine.runtime.CaseExecutionQuery in project camunda-bpm-platform by camunda.
the class CaseExecutionQueryTest method testQueryByStringCaseInstanceVariableValueNotEquals.
public void testQueryByStringCaseInstanceVariableValueNotEquals() {
caseService.withCaseDefinitionByKey(CASE_DEFINITION_KEY).setVariable("aStringValue", "abc").create();
CaseExecutionQuery query = caseService.createCaseExecutionQuery();
query.caseInstanceVariableValueNotEquals("aStringValue", "abd");
verifyQueryResults(query, 2);
}
use of org.camunda.bpm.engine.runtime.CaseExecutionQuery in project camunda-bpm-platform by camunda.
the class CaseExecutionQueryTest method testQueryByIntegerVariableValueLessThanOrEquals.
public void testQueryByIntegerVariableValueLessThanOrEquals() {
caseService.withCaseDefinitionByKey(CASE_DEFINITION_KEY).setVariable("anIntegerValue", 456).create();
CaseExecutionQuery query = caseService.createCaseExecutionQuery();
query.variableValueLessThanOrEqual("anIntegerValue", 457);
verifyQueryResults(query, 1);
query = caseService.createCaseExecutionQuery();
query.variableValueLessThanOrEqual("anIntegerValue", 456);
verifyQueryResults(query, 1);
}
use of org.camunda.bpm.engine.runtime.CaseExecutionQuery in project camunda-bpm-platform by camunda.
the class CaseExecutionQueryTest method testQueryByByteArrayCaseInstanceVariableValueGreaterThan.
public void testQueryByByteArrayCaseInstanceVariableValueGreaterThan() {
byte[] bytes = "somebytes".getBytes();
caseService.withCaseDefinitionByKey(CASE_DEFINITION_KEY).setVariable("aByteArrayValue", bytes).create();
CaseExecutionQuery query = caseService.createCaseExecutionQuery();
try {
query.caseInstanceVariableValueGreaterThan("aByteArrayValue", bytes).list();
fail();
} catch (ProcessEngineException e) {
}
}
use of org.camunda.bpm.engine.runtime.CaseExecutionQuery in project camunda-bpm-platform by camunda.
the class CaseExecutionQueryTest method testQueryByDoubleCaseInstanceVariableValueGreaterThanOrEqual.
public void testQueryByDoubleCaseInstanceVariableValueGreaterThanOrEqual() {
caseService.withCaseDefinitionByKey(CASE_DEFINITION_KEY).setVariable("aDoubleValue", 1.5).create();
CaseExecutionQuery query = caseService.createCaseExecutionQuery();
query.caseInstanceVariableValueGreaterThanOrEqual("aDoubleValue", 1.4);
verifyQueryResults(query, 2);
query = caseService.createCaseExecutionQuery();
query.caseInstanceVariableValueGreaterThanOrEqual("aDoubleValue", 1.5);
verifyQueryResults(query, 2);
}
use of org.camunda.bpm.engine.runtime.CaseExecutionQuery in project camunda-bpm-platform by camunda.
the class CaseExecutionQueryTest method testQueryByBooleanVariableValueLessThanOrEqual.
public void testQueryByBooleanVariableValueLessThanOrEqual() {
caseService.withCaseDefinitionByKey(CASE_DEFINITION_KEY).setVariable("aBooleanValue", true).create();
CaseExecutionQuery query = caseService.createCaseExecutionQuery();
try {
query.variableValueLessThanOrEqual("aBooleanValue", false).list();
fail();
} catch (NotValidException e) {
}
}
Aggregations