-
Feature Request
-
Resolution: Fixed
-
L3 - Default
-
None
-
None
Examples:
- jobQuery.priorityHigherThanOrEquals(5).priorityLowerThanOrEquals(3)
- jobQuery.duedateLowerThan(yesterday).duedateHigherThan(tomorrow)
- taskQuery.taskMinPriority(4).taskMaxPriority(2)
For all of these queries, it is apparent that the result set will be empty. These queries can be improved in one of the following two ways:
- validate the input (reasoning: make the user as soon as possible aware of a meaningless query)
- avoid the SQL query at all and just return an empty list
Current state: no validation is made, but the query executed anyways
Pull request for solution option 2: https://github.com/camunda/camunda-bpm-platform/pull/166/files