Uploaded image for project: 'Service Packs and Hot Fixes'
  1. Service Packs and Hot Fixes
  2. MNT-20646

Historic task query REST API does not support the LIKE_IGNORE_CASE variable operation

    Details

    • Bug Priority:
      Category 2
    • ACT Numbers:

      00990052

      Description

      Summary
      While using the historic task query REST API and filtering by process variable values, the variable operation LIKE_IGNORE_CASE is not supported, although being available for the historic process instance query API and in activiti-app-model/src/main/java/com/activiti/model/runtime/QueryVariable.java.

      Steps to reproduce
      1. Use any REST client like Postman and fire a POST call to

      http://server:port/activiti-app/api/enterprise/historic-tasks/query

      with a body like:

      {
      "includeProcessVariables": true,
      "processVariables":[
      {"name":"support","type":"string","value":"usupport","operation":"likeIgnoreCase"}]
      } 

      Current behaviour
      The response is

      {
        "message": "Bad request",
        "exception": "Unsupported variable query operation: LIKE_IGNORE_CASE"
      }

      Expected behaviour
      As the LIKE_IGNORE_CASE operation is a valid variable operation and as it works successful with the process instance query API, this variable should work fine with the task query API too.

      Supporting evidence

      • Reproduced with current latest APS 1.9.0.5
      • Compared

      com/activiti/service/runtime/AlfrescoProcessInstanceQueryService.java

      to

      com/activiti/service/runtime/AlfrescoTaskQueryService.java

      and figured that there is no switch case for LIKE_IGNORE_CASE in the latter one.

        Attachments

          Structure

            Activity

              People

              • Assignee:
                apsteam APS Team
                Reporter:
                dkoch Dennis Koch
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Structure Helper Panel