Java Code Examples for org.camunda.bpm.engine.task.TaskQuery#caseInstanceVariableValueLessThan()

The following examples show how to use org.camunda.bpm.engine.task.TaskQuery#caseInstanceVariableValueLessThan() . 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: TaskQueryTest.java    From camunda-bpm-platform with Apache License 2.0 4 votes vote down vote up
@Deployment(resources={"org/camunda/bpm/engine/test/api/cmmn/oneTaskCase.cmmn"})
public void testQueryByStringCaseInstanceVariableValueLessThan() {
  String caseDefinitionId = getCaseDefinitionId();

  caseService
    .withCaseDefinition(caseDefinitionId)
    .setVariable("aStringValue", "abc")
    .create();

  TaskQuery query = taskService.createTaskQuery();

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

  verifyQueryResults(query, 1);

}
 
Example 2
Source File: TaskQueryTest.java    From camunda-bpm-platform with Apache License 2.0 4 votes vote down vote up
@Deployment(resources={"org/camunda/bpm/engine/test/api/cmmn/oneTaskCase.cmmn"})
public void testQueryByShortCaseInstanceVariableValueLessThan() {
  String caseDefinitionId = getCaseDefinitionId();

  caseService
    .withCaseDefinition(caseDefinitionId)
    .setVariable("aShortValue", (short) 123)
    .create();

  TaskQuery query = taskService.createTaskQuery();

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

  verifyQueryResults(query, 1);

}
 
Example 3
Source File: TaskQueryTest.java    From camunda-bpm-platform with Apache License 2.0 4 votes vote down vote up
@Deployment(resources={"org/camunda/bpm/engine/test/api/cmmn/oneTaskCase.cmmn"})
public void testQueryByIntegerCaseInstanceVariableValueLessThan() {
  String caseDefinitionId = getCaseDefinitionId();

  caseService
    .withCaseDefinition(caseDefinitionId)
    .setVariable("anIntegerValue", 456)
    .create();

  TaskQuery query = taskService.createTaskQuery();

  query.caseInstanceVariableValueLessThan("anIntegerValue", 457);

  verifyQueryResults(query, 1);

}
 
Example 4
Source File: TaskQueryTest.java    From camunda-bpm-platform with Apache License 2.0 4 votes vote down vote up
@Deployment(resources={"org/camunda/bpm/engine/test/api/cmmn/oneTaskCase.cmmn"})
public void testQueryByLongCaseInstanceVariableValueLessThan() {
  String caseDefinitionId = getCaseDefinitionId();

  caseService
    .withCaseDefinition(caseDefinitionId)
    .setVariable("aLongValue", (long) 789)
    .create();

  TaskQuery query = taskService.createTaskQuery();

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

  verifyQueryResults(query, 1);

}
 
Example 5
Source File: TaskQueryTest.java    From camunda-bpm-platform with Apache License 2.0 4 votes vote down vote up
@Deployment(resources={"org/camunda/bpm/engine/test/api/cmmn/oneTaskCase.cmmn"})
public void testQueryByDateCaseInstanceVariableValueLessThan() {
  String caseDefinitionId = getCaseDefinitionId();

  Date now = new Date();

  caseService
    .withCaseDefinition(caseDefinitionId)
    .setVariable("aDateValue", now)
    .create();

  TaskQuery query = taskService.createTaskQuery();

  Date after = new Date(now.getTime() + 100000);

  query.caseInstanceVariableValueLessThan("aDateValue", after);

  verifyQueryResults(query, 1);

}
 
Example 6
Source File: TaskQueryTest.java    From camunda-bpm-platform with Apache License 2.0 4 votes vote down vote up
@Deployment(resources={"org/camunda/bpm/engine/test/api/cmmn/oneTaskCase.cmmn"})
public void testQueryByDoubleCaseInstanceVariableValueLessThan() {
  String caseDefinitionId = getCaseDefinitionId();

  caseService
    .withCaseDefinition(caseDefinitionId)
    .setVariable("aDoubleValue", 1.5)
    .create();

  TaskQuery query = taskService.createTaskQuery();

  query.caseInstanceVariableValueLessThan("aDoubleValue", 1.6);

  verifyQueryResults(query, 1);

}