Java Code Examples for org.camunda.bpm.engine.task.TaskQuery#caseInstanceVariableValueLessThanOrEquals()
The following examples show how to use
org.camunda.bpm.engine.task.TaskQuery#caseInstanceVariableValueLessThanOrEquals() .
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 testQueryByStringCaseInstanceVariableValueLessThanOrEqual() { String caseDefinitionId = getCaseDefinitionId(); caseService .withCaseDefinition(caseDefinitionId) .setVariable("aStringValue", "abc") .create(); TaskQuery query = taskService.createTaskQuery(); query.caseInstanceVariableValueLessThanOrEquals("aStringValue", "abd"); verifyQueryResults(query, 1); query = taskService.createTaskQuery(); query.caseInstanceVariableValueLessThanOrEquals("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 testQueryByShortCaseInstanceVariableValueLessThanOrEqual() { String caseDefinitionId = getCaseDefinitionId(); caseService .withCaseDefinition(caseDefinitionId) .setVariable("aShortValue", (short) 123) .create(); TaskQuery query = taskService.createTaskQuery(); query.caseInstanceVariableValueLessThanOrEquals("aShortValue", (short) 124); verifyQueryResults(query, 1); query = taskService.createTaskQuery(); query.caseInstanceVariableValueLessThanOrEquals("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 testQueryByIntegerCaseInstanceVariableValueLessThanOrEquals() { String caseDefinitionId = getCaseDefinitionId(); caseService .withCaseDefinition(caseDefinitionId) .setVariable("anIntegerValue", 456) .create(); TaskQuery query = taskService.createTaskQuery(); query.caseInstanceVariableValueLessThanOrEquals("anIntegerValue", 457); verifyQueryResults(query, 1); query = taskService.createTaskQuery(); query.caseInstanceVariableValueLessThanOrEquals("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 testQueryByLongCaseInstanceVariableValueLessThanOrEqual() { String caseDefinitionId = getCaseDefinitionId(); caseService .withCaseDefinition(caseDefinitionId) .setVariable("aLongValue", (long) 789) .create(); TaskQuery query = taskService.createTaskQuery(); query.caseInstanceVariableValueLessThanOrEquals("aLongValue", (long) 790); verifyQueryResults(query, 1); query = taskService.createTaskQuery(); query.caseInstanceVariableValueLessThanOrEquals("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 testQueryByDateCaseInstanceVariableValueLessThanOrEqual() { 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.caseInstanceVariableValueLessThanOrEquals("aDateValue", after); verifyQueryResults(query, 1); query = taskService.createTaskQuery(); query.caseInstanceVariableValueLessThanOrEquals("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 testQueryByDoubleCaseInstanceVariableValueLessThanOrEqual() { String caseDefinitionId = getCaseDefinitionId(); caseService .withCaseDefinition(caseDefinitionId) .setVariable("aDoubleValue", 1.5) .create(); TaskQuery query = taskService.createTaskQuery(); query.caseInstanceVariableValueLessThanOrEquals("aDoubleValue", 1.6); verifyQueryResults(query, 1); query = taskService.createTaskQuery(); query.caseInstanceVariableValueLessThanOrEquals("aDoubleValue", 1.5); verifyQueryResults(query, 1); }