Java Code Examples for org.camunda.bpm.engine.runtime.CaseExecutionQuery#variableValueLessThanOrEqual()
The following examples show how to use
org.camunda.bpm.engine.runtime.CaseExecutionQuery#variableValueLessThanOrEqual() .
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 | 4 votes |
public void testQueryByStringVariableValueLessThanOrEqual() { caseService .withCaseDefinitionByKey(CASE_DEFINITION_KEY) .setVariable("aStringValue", "abc") .create(); CaseExecutionQuery query = caseService.createCaseExecutionQuery(); query.variableValueLessThanOrEqual("aStringValue", "abd"); verifyQueryResults(query, 1); query = caseService.createCaseExecutionQuery(); query.variableValueLessThanOrEqual("aStringValue", "abc"); verifyQueryResults(query, 1); }
Example 2
Source File: CaseExecutionQueryTest.java From camunda-bpm-platform with Apache License 2.0 | 4 votes |
public void testQueryByShortVariableValueLessThanOrEqual() { caseService .withCaseDefinitionByKey(CASE_DEFINITION_KEY) .setVariable("aShortValue", (short) 123) .create(); CaseExecutionQuery query = caseService.createCaseExecutionQuery(); query.variableValueLessThanOrEqual("aShortValue", (short) 124); verifyQueryResults(query, 1); query = caseService.createCaseExecutionQuery(); query.variableValueLessThanOrEqual("aShortValue", (short) 123); verifyQueryResults(query, 1); }
Example 3
Source File: CaseExecutionQueryTest.java From camunda-bpm-platform with Apache License 2.0 | 4 votes |
public void testQueryByIntegerVariableValueLessThanOrEquals() { caseService .withCaseDefinitionByKey(CASE_DEFINITION_KEY) .setVariable("anIntegerValue", 456) .create(); CaseExecutionQuery query = caseService.createCaseExecutionQuery(); query.variableValueLessThanOrEqual("anIntegerValue", 457); verifyQueryResults(query, 1); query = caseService.createCaseExecutionQuery(); query.variableValueLessThanOrEqual("anIntegerValue", 456); verifyQueryResults(query, 1); }
Example 4
Source File: CaseExecutionQueryTest.java From camunda-bpm-platform with Apache License 2.0 | 4 votes |
public void testQueryByLongVariableValueLessThanOrEqual() { caseService .withCaseDefinitionByKey(CASE_DEFINITION_KEY) .setVariable("aLongValue", (long) 789) .create(); CaseExecutionQuery query = caseService.createCaseExecutionQuery(); query.variableValueLessThanOrEqual("aLongValue", (long) 790); verifyQueryResults(query, 1); query = caseService.createCaseExecutionQuery(); query.variableValueLessThanOrEqual("aLongValue", (long) 789); verifyQueryResults(query, 1); }
Example 5
Source File: CaseExecutionQueryTest.java From camunda-bpm-platform with Apache License 2.0 | 4 votes |
public void testQueryByDateVariableValueLessThanOrEqual() { Date now = new Date(); caseService .withCaseDefinitionByKey(CASE_DEFINITION_KEY) .setVariable("aDateValue", now) .create(); CaseExecutionQuery query = caseService.createCaseExecutionQuery(); Date after = new Date(now.getTime() + 100000); query.variableValueLessThanOrEqual("aDateValue", after); verifyQueryResults(query, 1); query = caseService.createCaseExecutionQuery(); query.variableValueLessThanOrEqual("aDateValue", now); verifyQueryResults(query, 1); }
Example 6
Source File: CaseExecutionQueryTest.java From camunda-bpm-platform with Apache License 2.0 | 4 votes |
public void testQueryByDoubleVariableValueLessThanOrEqual() { caseService .withCaseDefinitionByKey(CASE_DEFINITION_KEY) .setVariable("aDoubleValue", 1.5) .create(); CaseExecutionQuery query = caseService.createCaseExecutionQuery(); query.variableValueLessThanOrEqual("aDoubleValue", 1.6); verifyQueryResults(query, 1); query = caseService.createCaseExecutionQuery(); query.variableValueLessThanOrEqual("aDoubleValue", 1.5); verifyQueryResults(query, 1); }