use of org.camunda.bpm.engine.runtime.CaseInstanceQuery in project camunda-bpm-platform by camunda.
the class CaseInstanceQueryTest method testQueryByCaseDefinitionKey.
public void testQueryByCaseDefinitionKey() {
CaseInstanceQuery query = caseService.createCaseInstanceQuery();
query.caseDefinitionKey(CASE_DEFINITION_KEY_2);
verifyQueryResults(query, 1);
}
use of org.camunda.bpm.engine.runtime.CaseInstanceQuery in project camunda-bpm-platform by camunda.
the class CaseInstanceQueryTest method testQueryBySerializableVariableGreaterThanOrEqual.
public void testQueryBySerializableVariableGreaterThanOrEqual() {
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.variableValueGreaterThanOrEqual("aSerializableValue", serializable).list();
fail();
} catch (ProcessEngineException e) {
}
}
use of org.camunda.bpm.engine.runtime.CaseInstanceQuery in project camunda-bpm-platform by camunda.
the class CaseInstanceQueryTest method testQueryWithoutQueryParameter.
public void testQueryWithoutQueryParameter() {
CaseInstanceQuery query = caseService.createCaseInstanceQuery();
verifyQueryResults(query, 5);
}
use of org.camunda.bpm.engine.runtime.CaseInstanceQuery in project camunda-bpm-platform by camunda.
the class CaseInstanceQueryTest method testQueryByShortVariableValueEquals.
public void testQueryByShortVariableValueEquals() {
caseService.withCaseDefinitionByKey(CASE_DEFINITION_KEY).setVariable("aShortValue", (short) 123).create();
CaseInstanceQuery query = caseService.createCaseInstanceQuery();
query.variableValueEquals("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 testQueryBySerializableVariableValueEquals.
public void testQueryBySerializableVariableValueEquals() {
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.variableValueEquals("aSerializableValue", serializable).list();
fail();
} catch (ProcessEngineException e) {
}
}
Aggregations