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

Historic task instances can't be filtered by process variables with LIKE operator

    • Icon: Bug Report Bug Report
    • Resolution: Won't Fix
    • Icon: L3 - Default L3 - Default
    • None
    • 7.6.0
    • engine
    • None

      In the doc (https://docs.camunda.org/manual/7.5/reference/rest/history/task/get-task-query-count/) it says:

      Valid operator values are: eq - equal to; neq - not equal to; gt - greater than; gteq - greater than or equal to; lt - lower than; lteq - lower than or equal to; like.
      key and value may not contain underscore or comma characters.

      But when I try to filter with the LIKE operator, it returns: "Invalid variable comperator specified: like" Looking at the source code (https://github.com/camunda/camunda-bpm-platform/blob/master/engine-rest/engine-rest/src/main/java/org/camunda/bpm/engine/rest/dto/history/HistoricTaskInstanceQueryDto.java#L551), it seems as only the EQUALS operator is implemented here. It's different (https://github.com/camunda/camunda-bpm-platform/blob/master/engine-rest/engine-rest/src/main/java/org/camunda/bpm/engine/rest/dto/task/TaskQueryDto.java#L1205) for the current instances.

        This is the controller panel for Smart Panels app

            [CAM-7483] Historic task instances can't be filtered by process variables with LIKE operator

            Steffen F. created issue -
            Steffen F. made changes -
            Description Original: In the [doc](https://docs.camunda.org/manual/7.5/reference/rest/history/task/get-task-query-count/) it says:

            {quote}Valid operator values are: eq - equal to; neq - not equal to; gt - greater than; gteq - greater than or equal to; lt - lower than; lteq - lower than or equal to; like.
            key and value may not contain underscore or comma characters.{quote}

            But when I try to filter with the LIKE operator, it returns: "Invalid variable comperator specified: like" Looking at the [source code](https://github.com/camunda/camunda-bpm-platform/blob/master/engine-rest/engine-rest/src/main/java/org/camunda/bpm/engine/rest/dto/history/HistoricTaskInstanceQueryDto.java#L551), it seems as only the EQUALS operator is implemented here. It's [different](https://github.com/camunda/camunda-bpm-platform/blob/master/engine-rest/engine-rest/src/main/java/org/camunda/bpm/engine/rest/dto/task/TaskQueryDto.java#L1205) for the current instances.
            New: In the doc (https://docs.camunda.org/manual/7.5/reference/rest/history/task/get-task-query-count/) it says:

            {quote}Valid operator values are: eq - equal to; neq - not equal to; gt - greater than; gteq - greater than or equal to; lt - lower than; lteq - lower than or equal to; like.
            key and value may not contain underscore or comma characters.{quote}

            But when I try to filter with the LIKE operator, it returns: "Invalid variable comperator specified: like" Looking at the source code (https://github.com/camunda/camunda-bpm-platform/blob/master/engine-rest/engine-rest/src/main/java/org/camunda/bpm/engine/rest/dto/history/HistoricTaskInstanceQueryDto.java#L551), it seems as only the EQUALS operator is implemented here. It's different (https://github.com/camunda/camunda-bpm-platform/blob/master/engine-rest/engine-rest/src/main/java/org/camunda/bpm/engine/rest/dto/task/TaskQueryDto.java#L1205) for the current instances.
            Steffen F. made changes -
            Affects Version/s New: 7.6.0 [ 14490 ]
            Affects Version/s Original: 7.6.2 [ 14700 ]
            Thorben Lindhauer made changes -
            Workflow Original: camunda BPM [ 41983 ] New: Backup_camunda BPM [ 56168 ]
            Thorben Lindhauer made changes -
            Resolution New: Won't Fix [ 2 ]
            Status Original: Open [ 1 ] New: Closed [ 6 ]

              Unassigned Unassigned
              g10163814 Steffen F.
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: