Java Code Examples for org.camunda.bpm.engine.runtime.CaseExecutionQuery#caseInstanceVariableValueEquals()

The following examples show how to use org.camunda.bpm.engine.runtime.CaseExecutionQuery#caseInstanceVariableValueEquals() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CaseExecutionQueryTest.java    From camunda-bpm-platform with Apache License 2.0 5 votes vote down vote up
public void testQueryByNullCaseInstanceVariableValueEquals() {
  caseService
    .withCaseDefinitionByKey(CASE_DEFINITION_KEY)
    .setVariable("aNullValue", null)
    .create();

  CaseExecutionQuery query = caseService.createCaseExecutionQuery();

  query.caseInstanceVariableValueEquals("aNullValue", null);

  verifyQueryResults(query, 2);
}
 
Example 2
Source File: CaseExecutionQueryTest.java    From camunda-bpm-platform with Apache License 2.0 5 votes vote down vote up
public void testQueryByStringCaseInstanceVariableValueEquals() {
  caseService
    .withCaseDefinitionByKey(CASE_DEFINITION_KEY)
    .setVariable("aStringValue", "abc")
    .create();

  CaseExecutionQuery query = caseService.createCaseExecutionQuery();

  query.caseInstanceVariableValueEquals("aStringValue", "abc");

  verifyQueryResults(query, 2);
}
 
Example 3
Source File: CaseExecutionQueryTest.java    From camunda-bpm-platform with Apache License 2.0 5 votes vote down vote up
public void testQueryByBooleanCaseInstanceVariableValueEquals() {
  caseService
    .withCaseDefinitionByKey(CASE_DEFINITION_KEY)
    .setVariable("aBooleanValue", true)
    .create();

  CaseExecutionQuery query = caseService.createCaseExecutionQuery();

  query.caseInstanceVariableValueEquals("aBooleanValue", true);

  verifyQueryResults(query, 2);
}
 
Example 4
Source File: CaseExecutionQueryTest.java    From camunda-bpm-platform with Apache License 2.0 5 votes vote down vote up
public void testQueryByShortCaseInstanceVariableValueEquals() {
  caseService
    .withCaseDefinitionByKey(CASE_DEFINITION_KEY)
    .setVariable("aShortValue", (short) 123)
    .create();

  CaseExecutionQuery query = caseService.createCaseExecutionQuery();

  query.caseInstanceVariableValueEquals("aShortValue", (short) 123);

  verifyQueryResults(query, 2);
}
 
Example 5
Source File: CaseExecutionQueryTest.java    From camunda-bpm-platform with Apache License 2.0 5 votes vote down vote up
public void testQueryByIntegerCaseInstanceVariableValueEquals() {
  caseService
    .withCaseDefinitionByKey(CASE_DEFINITION_KEY)
    .setVariable("anIntegerValue", 456)
    .create();

  CaseExecutionQuery query = caseService.createCaseExecutionQuery();

  query.caseInstanceVariableValueEquals("anIntegerValue", 456);

  verifyQueryResults(query, 2);
}
 
Example 6
Source File: CaseExecutionQueryTest.java    From camunda-bpm-platform with Apache License 2.0 5 votes vote down vote up
public void testQueryByLongCaseInstanceVariableValueEquals() {
  caseService
    .withCaseDefinitionByKey(CASE_DEFINITION_KEY)
    .setVariable("aLongValue", (long) 789)
    .create();

  CaseExecutionQuery query = caseService.createCaseExecutionQuery();

  query.caseInstanceVariableValueEquals("aLongValue", (long) 789);

  verifyQueryResults(query, 2);
}
 
Example 7
Source File: CaseExecutionQueryTest.java    From camunda-bpm-platform with Apache License 2.0 5 votes vote down vote up
public void testQueryByDateCaseInstanceVariableValueEquals() {
  Date now = new Date();
  caseService
    .withCaseDefinitionByKey(CASE_DEFINITION_KEY)
    .setVariable("aDateValue", now)
    .create();

  CaseExecutionQuery query = caseService.createCaseExecutionQuery();

  query.caseInstanceVariableValueEquals("aDateValue", now);

  verifyQueryResults(query, 2);
}
 
Example 8
Source File: CaseExecutionQueryTest.java    From camunda-bpm-platform with Apache License 2.0 5 votes vote down vote up
public void testQueryByDoubleCaseInstanceVariableValueEquals() {
  caseService
    .withCaseDefinitionByKey(CASE_DEFINITION_KEY)
    .setVariable("aDoubleValue", 1.5)
    .create();

  CaseExecutionQuery query = caseService.createCaseExecutionQuery();

  query.caseInstanceVariableValueEquals("aDoubleValue", 1.5);

  verifyQueryResults(query, 2);
}