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

Tasklist Filter dialog can handle sorting parameters

    XMLWordPrintable

Details

    Description

      Reproduce

      1. Create a task filter using the REST API with a task query which contains sorting parameters like:

      POST /engine-rest/filter/create
      
      {
          "name": "Filter With Sorting",
          "owner": "demo",
          "query": {
              "active": "true",
              "caseInstanceVariables": [],
              "processVariables": [],
              "sorting": [
                  {
                      "sortBy": "created",
                      "sortOrder": "desc"
                  }
              ],
              "taskVariables": []
          },
          "resourceType": "Task"
      }
      

      2. Open Tasklist and edit the Filter "Filter With Sorting". It exists a criteria which without a name and the value [object Object].
      3. Try to save the filter without modification. An exception occurs as the tasklist tries to send a request like (note the invalid sorting value):

      {
          "id": "2e39347f-679f-11e5-8d24-02421d6f7dbe",
          "name": "Filter With Sorting",
          "properties": {
              "color": "#EEEEEE",
              "priority": 0,
              "refresh": false,
              "showUndefinedVariable": false
          },
          "query": {
              "active": "true",
              "sorting": "[object Object]"
          },
          "resourceType": "Task"
      }
      

      Expected Behavior

      Tasklist handles the sorting parameters without modification and doesn't show a criteria without a name.

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          Issue Links

            Activity

              People

                michael.schoettes Michael Schoettes
                sebastian.menski Sebastian Menski
                Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Salesforce