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

Filter criteria "Business Key Like" is not stored as an expression

    • Icon: Bug Report Bug Report
    • Resolution: Unresolved
    • Icon: L3 - Default L3 - Default
    • None
    • None
    • tasklist

      Steps to reproduce:
      1) login to tasklist
      2) create a new filter
      3) enter a filter name
      4) add a criteria "Business Key Like" with the value ${currentUser}
      5) save filter

      Problem:
      The following request is peformed:

      POST /filter/create

      with the following request body

      { ...
        "query": {
          "processInstanceBusinessKeyLike":"%${ currentUser() }%"
        },
        ...
      }
      

      Expected Behavior:
      The request body should be

      { ...
        "query": {
          "processInstanceBusinessKeyLikeExpression":"%${ currentUser() }%"
        },
        ...
      }
      

      I.e. the criteria name processInstanceBusinessKeyLikeExpression should be set.

      Hint:

      • In [1] the value will be manipulated, so that in [2] the function isExpression() returns false.
      • The "Business Key Like Expression" cannot be used in the search field "Filter Tasks"

      [1]: https://github.com/camunda/camunda-bpm-webapp/blob/4b696449f6023750b86a49c898da6a62d6cd158e/ui/tasklist/client/scripts/filter/modals/cam-tasklist-filter-modal.js#L259
      [2]: https://github.com/camunda/camunda-bpm-webapp/blob/4b696449f6023750b86a49c898da6a62d6cd158e/ui/tasklist/client/scripts/filter/modals/cam-tasklist-filter-modal.js#L264

        This is the controller panel for Smart Panels app

            [CAM-8506] Filter criteria "Business Key Like" is not stored as an expression

            Roman Smirnov created issue -
            Roman Smirnov made changes -
            Description Original: *Steps to reproduce:*
            1) login to tasklist
            2) create a new filter
            3) enter a filter name
            4) add a criteria "Business Key Like" with the value {{$\{currentUser\}}}
            5) save filter

            *Problem:*
            The following request is peformed:

            {{ POST /filter/create}}

            with the following request body

            {code}
            { ...
              "query": {
                "processInstanceBusinessKeyLike":"%${ currentUser() }%"
              },
              ...
            }
            {code}

            *Expected Behavior:*
            The request body should be

            {code}
            { ...
              "query": {
                "processInstanceBusinessKeyLikeExpression":"%${ currentUser() }%"
              },
              ...
            }
            {code}

            I.e. the criteria {{processInstanceBusinessKeyLikeExpression}} is used.

            Hint:
            - In [1] the value will be manipulated, so that in [2] the function {{isExpression()}} returns false.
            - The "Business Key Like Expression" cannot also be used in the search field "Filter Tasks"

            [1]: https://github.com/camunda/camunda-bpm-webapp/blob/4b696449f6023750b86a49c898da6a62d6cd158e/ui/tasklist/client/scripts/filter/modals/cam-tasklist-filter-modal.js#L259
            [2]: https://github.com/camunda/camunda-bpm-webapp/blob/4b696449f6023750b86a49c898da6a62d6cd158e/ui/tasklist/client/scripts/filter/modals/cam-tasklist-filter-modal.js#L264
            New: *Steps to reproduce:*
            1) login to tasklist
            2) create a new filter
            3) enter a filter name
            4) add a criteria "Business Key Like" with the value {{$\{currentUser\}}}
            5) save filter

            *Problem:*
            The following request is peformed:

            {{ POST /filter/create}}

            with the following request body

            {code}
            { ...
              "query": {
                "processInstanceBusinessKeyLike":"%${ currentUser() }%"
              },
              ...
            }
            {code}

            *Expected Behavior:*
            The request body should be

            {code}
            { ...
              "query": {
                "processInstanceBusinessKeyLikeExpression":"%${ currentUser() }%"
              },
              ...
            }
            {code}

            I.e. the criteria name {{processInstanceBusinessKeyLikeExpression}} should be set.

            Hint:
            - In [1] the value will be manipulated, so that in [2] the function {{isExpression()}} returns false.
            - The "Business Key Like Expression" cannot also be used in the search field "Filter Tasks"

            [1]: https://github.com/camunda/camunda-bpm-webapp/blob/4b696449f6023750b86a49c898da6a62d6cd158e/ui/tasklist/client/scripts/filter/modals/cam-tasklist-filter-modal.js#L259
            [2]: https://github.com/camunda/camunda-bpm-webapp/blob/4b696449f6023750b86a49c898da6a62d6cd158e/ui/tasklist/client/scripts/filter/modals/cam-tasklist-filter-modal.js#L264
            Roman Smirnov made changes -
            Link New: This issue is related to SUPPORT-3461 [ SUPPORT-3461 ]
            Roman Smirnov made changes -
            Description Original: *Steps to reproduce:*
            1) login to tasklist
            2) create a new filter
            3) enter a filter name
            4) add a criteria "Business Key Like" with the value {{$\{currentUser\}}}
            5) save filter

            *Problem:*
            The following request is peformed:

            {{ POST /filter/create}}

            with the following request body

            {code}
            { ...
              "query": {
                "processInstanceBusinessKeyLike":"%${ currentUser() }%"
              },
              ...
            }
            {code}

            *Expected Behavior:*
            The request body should be

            {code}
            { ...
              "query": {
                "processInstanceBusinessKeyLikeExpression":"%${ currentUser() }%"
              },
              ...
            }
            {code}

            I.e. the criteria name {{processInstanceBusinessKeyLikeExpression}} should be set.

            Hint:
            - In [1] the value will be manipulated, so that in [2] the function {{isExpression()}} returns false.
            - The "Business Key Like Expression" cannot also be used in the search field "Filter Tasks"

            [1]: https://github.com/camunda/camunda-bpm-webapp/blob/4b696449f6023750b86a49c898da6a62d6cd158e/ui/tasklist/client/scripts/filter/modals/cam-tasklist-filter-modal.js#L259
            [2]: https://github.com/camunda/camunda-bpm-webapp/blob/4b696449f6023750b86a49c898da6a62d6cd158e/ui/tasklist/client/scripts/filter/modals/cam-tasklist-filter-modal.js#L264
            New: *Steps to reproduce:*
            1) login to tasklist
            2) create a new filter
            3) enter a filter name
            4) add a criteria "Business Key Like" with the value {{$\{currentUser\}}}
            5) save filter

            *Problem:*
            The following request is peformed:

            {{ POST /filter/create}}

            with the following request body

            {code}
            { ...
              "query": {
                "processInstanceBusinessKeyLike":"%${ currentUser() }%"
              },
              ...
            }
            {code}

            *Expected Behavior:*
            The request body should be

            {code}
            { ...
              "query": {
                "processInstanceBusinessKeyLikeExpression":"%${ currentUser() }%"
              },
              ...
            }
            {code}

            I.e. the criteria name {{processInstanceBusinessKeyLikeExpression}} should be set.

            Hint:
            - In [1] the value will be manipulated, so that in [2] the function {{isExpression()}} returns false.
            - The "Business Key Like Expression" cannot be used in the search field "Filter Tasks"

            [1]: https://github.com/camunda/camunda-bpm-webapp/blob/4b696449f6023750b86a49c898da6a62d6cd158e/ui/tasklist/client/scripts/filter/modals/cam-tasklist-filter-modal.js#L259
            [2]: https://github.com/camunda/camunda-bpm-webapp/blob/4b696449f6023750b86a49c898da6a62d6cd158e/ui/tasklist/client/scripts/filter/modals/cam-tasklist-filter-modal.js#L264
            Roman Smirnov made changes -
            Description Original: *Steps to reproduce:*
            1) login to tasklist
            2) create a new filter
            3) enter a filter name
            4) add a criteria "Business Key Like" with the value {{$\{currentUser\}}}
            5) save filter

            *Problem:*
            The following request is peformed:

            {{ POST /filter/create}}

            with the following request body

            {code}
            { ...
              "query": {
                "processInstanceBusinessKeyLike":"%${ currentUser() }%"
              },
              ...
            }
            {code}

            *Expected Behavior:*
            The request body should be

            {code}
            { ...
              "query": {
                "processInstanceBusinessKeyLikeExpression":"%${ currentUser() }%"
              },
              ...
            }
            {code}

            I.e. the criteria name {{processInstanceBusinessKeyLikeExpression}} should be set.

            Hint:
            - In [1] the value will be manipulated, so that in [2] the function {{isExpression()}} returns false.
            - The "Business Key Like Expression" cannot be used in the search field "Filter Tasks"

            [1]: https://github.com/camunda/camunda-bpm-webapp/blob/4b696449f6023750b86a49c898da6a62d6cd158e/ui/tasklist/client/scripts/filter/modals/cam-tasklist-filter-modal.js#L259
            [2]: https://github.com/camunda/camunda-bpm-webapp/blob/4b696449f6023750b86a49c898da6a62d6cd158e/ui/tasklist/client/scripts/filter/modals/cam-tasklist-filter-modal.js#L264
            New: *Steps to reproduce:*
            1) login to tasklist
            2) create a new filter
            3) enter a filter name
            4) add a criteria "Business Key Like" with the value {{$\{currentUser\}}}
            5) save filter

            *Problem:*
            The following request is peformed:

            {{POST /filter/create}}

            with the following request body

            {code}
            { ...
              "query": {
                "processInstanceBusinessKeyLike":"%${ currentUser() }%"
              },
              ...
            }
            {code}

            *Expected Behavior:*
            The request body should be

            {code}
            { ...
              "query": {
                "processInstanceBusinessKeyLikeExpression":"%${ currentUser() }%"
              },
              ...
            }
            {code}

            I.e. the criteria name {{processInstanceBusinessKeyLikeExpression}} should be set.

            Hint:
            - In [1] the value will be manipulated, so that in [2] the function {{isExpression()}} returns false.
            - The "Business Key Like Expression" cannot be used in the search field "Filter Tasks"

            [1]: https://github.com/camunda/camunda-bpm-webapp/blob/4b696449f6023750b86a49c898da6a62d6cd158e/ui/tasklist/client/scripts/filter/modals/cam-tasklist-filter-modal.js#L259
            [2]: https://github.com/camunda/camunda-bpm-webapp/blob/4b696449f6023750b86a49c898da6a62d6cd158e/ui/tasklist/client/scripts/filter/modals/cam-tasklist-filter-modal.js#L264
            Thorben Lindhauer made changes -
            Workflow Original: camunda BPM [ 44795 ] New: Backup_camunda BPM [ 56388 ]
            Thorben Lindhauer made changes -
            Fix Version/s Original: 7.8.x [ 14900 ]

            This ticket was migrated to github: https://github.com/camunda/camunda-bpm-platform/issues/2179. Please use this link for any future references and continue any discussion there.

            Thorben Lindhauer added a comment - This ticket was migrated to github: https://github.com/camunda/camunda-bpm-platform/issues/2179 . Please use this link for any future references and continue any discussion there.

              Unassigned Unassigned
              roman.smirnov Roman Smirnov
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: