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

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

  CaseExecutionQuery query = caseService.createCaseExecutionQuery();

  query.variableValueNotEquals("aStringValue", "abd");

  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 testQueryByBooleanVariableValueNotEquals() {
  caseService
    .withCaseDefinitionByKey(CASE_DEFINITION_KEY)
    .setVariable("aBooleanValue", true)
    .create();

  CaseExecutionQuery query = caseService.createCaseExecutionQuery();

  query.variableValueNotEquals("aBooleanValue", false);

  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 testQueryByShortVariableValueNotEquals() {
  caseService
    .withCaseDefinitionByKey(CASE_DEFINITION_KEY)
    .setVariable("aShortValue", (short) 123)
    .create();

  CaseExecutionQuery query = caseService.createCaseExecutionQuery();

  query.variableValueNotEquals("aShortValue", (short) 124);

  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 testQueryByIntegerVariableValueNotEquals() {
  caseService
    .withCaseDefinitionByKey(CASE_DEFINITION_KEY)
    .setVariable("anIntegerValue", 456)
    .create();

  CaseExecutionQuery query = caseService.createCaseExecutionQuery();

  query.variableValueNotEquals("anIntegerValue", 457);

  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 testQueryByLongVariableValueNotEquals() {
  caseService
    .withCaseDefinitionByKey(CASE_DEFINITION_KEY)
    .setVariable("aLongValue", (long) 789)
    .create();

  CaseExecutionQuery query = caseService.createCaseExecutionQuery();

  query.variableValueNotEquals("aLongValue", (long) 790);

  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 testQueryByDoubleVariableValueNotEquals() {
  caseService
    .withCaseDefinitionByKey(CASE_DEFINITION_KEY)
    .setVariable("aDoubleValue", 1.5)
    .create();

  CaseExecutionQuery query = caseService.createCaseExecutionQuery();

  query.variableValueNotEquals("aDoubleValue", 1.6);

  verifyQueryResults(query, 1);
}
 
Example 7
Source File: CaseExecutionQueryTest.java    From camunda-bpm-platform with Apache License 2.0 4 votes vote down vote up
public void testQueryByDateVariableValueNotEquals() {
  Date now = new Date();

  caseService
    .withCaseDefinitionByKey(CASE_DEFINITION_KEY)
    .setVariable("aDateValue", now)
    .create();

  Date before = new Date(now.getTime() - 100000);

  CaseExecutionQuery query = caseService.createCaseExecutionQuery();

  query.variableValueNotEquals("aDateValue", before);

  verifyQueryResults(query, 1);
}