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

The following examples show how to use org.camunda.bpm.engine.runtime.CaseExecutionQuery#variableValueEquals() . 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 testQueryByNullVariableValueEquals() {
  caseService
    .withCaseDefinitionByKey(CASE_DEFINITION_KEY)
    .setVariable("aNullValue", null)
    .create();

  CaseExecutionQuery query = caseService.createCaseExecutionQuery();

  query.variableValueEquals("aNullValue", null);

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

  CaseExecutionQuery query = caseService.createCaseExecutionQuery();

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

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

  CaseExecutionQuery query = caseService.createCaseExecutionQuery();

  query.variableValueEquals("aBooleanValue", true);

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

  CaseExecutionQuery query = caseService.createCaseExecutionQuery();

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

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

  CaseExecutionQuery query = caseService.createCaseExecutionQuery();

  query.variableValueEquals("anIntegerValue", 456);

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

  CaseExecutionQuery query = caseService.createCaseExecutionQuery();

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

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

  CaseExecutionQuery query = caseService.createCaseExecutionQuery();

  query.variableValueEquals("aDateValue", now);

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

  CaseExecutionQuery query = caseService.createCaseExecutionQuery();

  query.variableValueEquals("aDoubleValue", 1.5);

  verifyQueryResults(query, 1);
}