Improve handling of meaningless API range queries

XMLWordPrintable

    • Type: Feature Request
    • Resolution: Fixed
    • Priority: L3 - Default
    • 7.4.0, 7.4.0-alpha3
    • Affects Version/s: None
    • Component/s: engine
    • 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

        This is the controller panel for Smart Panels app

              Assignee:
              Thorben Lindhauer
              Reporter:
              Thorben Lindhauer
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: