Misleading Javadoc of HistoricProcessInstanceQuery#finishedAfter()

XMLWordPrintable

    • Type: Bug Report
    • Resolution: Unresolved
    • Priority: L3 - Default
    • None
    • Affects Version/s: None
    • Component/s: documentation, engine

      The Javadoc of HistoricProcessInstanceQuery#finishedAfter() [1] is misleading, in a way that it is saying that only process instances that were finished after the a given date (i.e. END_TIME_ > #{finishedAfter}). But the actual implementation includes the given date (i.e. END_TIME_ >= #{finishedAfter}).

      AT:

      • the javadoc should document the actual behavior (i.e. >=)
      • the documentation of the REST API is adjusted accordingly
      • the same should be applied for
        • #finishedBefore()
        • #startedBefore()
        • #startedAfter()
        • HistoricActivityInstanceQuery#...
        • and all other historic queries

      [1]: https://github.com/camunda/camunda-bpm-platform/blob/b75c9d267435ed9d2daae640a74d41c181721b9f/engine/src/main/java/org/camunda/bpm/engine/history/HistoricProcessInstanceQuery.java#L204-L205

        This is the controller panel for Smart Panels app

              Assignee:
              Unassigned
              Reporter:
              Roman Smirnov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: