Java Code Examples for org.camunda.bpm.engine.task.TaskQuery#caseInstanceVariableValueGreaterThanOrEquals()
The following examples show how to use
org.camunda.bpm.engine.task.TaskQuery#caseInstanceVariableValueGreaterThanOrEquals() .
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 |
@Deployment(resources={"org/camunda/bpm/engine/test/api/cmmn/oneTaskCase.cmmn"}) public void testQueryByStringCaseInstanceVariableValueGreaterThanOrEqual() { String caseDefinitionId = getCaseDefinitionId(); caseService .withCaseDefinition(caseDefinitionId) .setVariable("aStringValue", "abc") .create(); TaskQuery query = taskService.createTaskQuery(); query.caseInstanceVariableValueGreaterThanOrEquals("aStringValue", "ab"); verifyQueryResults(query, 1); query = taskService.createTaskQuery(); query.caseInstanceVariableValueGreaterThanOrEquals("aStringValue", "abc"); verifyQueryResults(query, 1); }
Example 2
Source File: TaskQueryTest.java From camunda-bpm-platform with Apache License 2.0 | 4 votes |
@Deployment(resources={"org/camunda/bpm/engine/test/api/cmmn/oneTaskCase.cmmn"}) public void testQueryByShortCaseInstanceVariableValueGreaterThanOrEqual() { String caseDefinitionId = getCaseDefinitionId(); caseService .withCaseDefinition(caseDefinitionId) .setVariable("aShortValue", (short) 123) .create(); TaskQuery query = taskService.createTaskQuery(); query.caseInstanceVariableValueGreaterThanOrEquals("aShortValue", (short) 122); verifyQueryResults(query, 1); query = taskService.createTaskQuery(); query.caseInstanceVariableValueGreaterThanOrEquals("aShortValue", (short) 123); verifyQueryResults(query, 1); }
Example 3
Source File: TaskQueryTest.java From camunda-bpm-platform with Apache License 2.0 | 4 votes |
@Deployment(resources={"org/camunda/bpm/engine/test/api/cmmn/oneTaskCase.cmmn"}) public void testQueryByIntegerCaseInstanceVariableValueGreaterThanOrEquals() { String caseDefinitionId = getCaseDefinitionId(); caseService .withCaseDefinition(caseDefinitionId) .setVariable("anIntegerValue", 456) .create(); TaskQuery query = taskService.createTaskQuery(); query.caseInstanceVariableValueGreaterThanOrEquals("anIntegerValue", 455); verifyQueryResults(query, 1); query = taskService.createTaskQuery(); query.caseInstanceVariableValueGreaterThanOrEquals("anIntegerValue", 456); verifyQueryResults(query, 1); }
Example 4
Source File: TaskQueryTest.java From camunda-bpm-platform with Apache License 2.0 | 4 votes |
@Deployment(resources={"org/camunda/bpm/engine/test/api/cmmn/oneTaskCase.cmmn"}) public void testQueryByLongCaseInstanceVariableValueGreaterThanOrEqual() { String caseDefinitionId = getCaseDefinitionId(); caseService .withCaseDefinition(caseDefinitionId) .setVariable("aLongValue", (long) 789) .create(); TaskQuery query = taskService.createTaskQuery(); query.caseInstanceVariableValueGreaterThanOrEquals("aLongValue", (long) 788); verifyQueryResults(query, 1); query = taskService.createTaskQuery(); query.caseInstanceVariableValueGreaterThanOrEquals("aLongValue", (long) 789); verifyQueryResults(query, 1); }
Example 5
Source File: TaskQueryTest.java From camunda-bpm-platform with Apache License 2.0 | 4 votes |
@Deployment(resources={"org/camunda/bpm/engine/test/api/cmmn/oneTaskCase.cmmn"}) public void testQueryByDateCaseInstanceVariableValueGreaterThanOrEqual() { String caseDefinitionId = getCaseDefinitionId(); Date now = new Date(); caseService .withCaseDefinition(caseDefinitionId) .setVariable("aDateValue", now) .create(); TaskQuery query = taskService.createTaskQuery(); Date before = new Date(now.getTime() - 100000); query.caseInstanceVariableValueGreaterThanOrEquals("aDateValue", before); verifyQueryResults(query, 1); query = taskService.createTaskQuery(); query.caseInstanceVariableValueGreaterThanOrEquals("aDateValue", now); verifyQueryResults(query, 1); }
Example 6
Source File: TaskQueryTest.java From camunda-bpm-platform with Apache License 2.0 | 4 votes |
@Deployment(resources={"org/camunda/bpm/engine/test/api/cmmn/oneTaskCase.cmmn"}) public void testQueryByDoubleCaseInstanceVariableValueGreaterThanOrEqual() { String caseDefinitionId = getCaseDefinitionId(); caseService .withCaseDefinition(caseDefinitionId) .setVariable("aDoubleValue", 1.5) .create(); TaskQuery query = taskService.createTaskQuery(); query.caseInstanceVariableValueGreaterThanOrEquals("aDoubleValue", 1.4); verifyQueryResults(query, 1); query = taskService.createTaskQuery(); query.caseInstanceVariableValueGreaterThanOrEquals("aDoubleValue", 1.5); verifyQueryResults(query, 1); }