Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-4294

Improve handling of meaningless API range queries

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Fixed
    • L3 - Default
    • 7.4.0, 7.4.0-alpha3
    • None
    • engine
    • None

    Description

      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

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          Issue Links

            Activity

              People

                thorben.lindhauer Thorben Lindhauer
                thorben.lindhauer Thorben Lindhauer
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Salesforce