Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-14457

Wrong expression format when creating Select/Filter expression with UI

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • fuse-7.9-GA
    • fuse-7.x-GA
    • Atlas Map
    • None

      I hit a problem, when creating mapping with expression with Filter and Select, which caused camel route using generated mapping not to work correctly.

      This is the current state of the output mapping expression format:

      "expression" : "SELECT(FILTER(${sourceArrays:/jsonObjects<>},${sourceArrays:/jsonObjects<>/key}>4),${sourceArrays:/jsonObjects<>/value})",
      

       

       

      According to this comment, the format should look like this (changing it to this format also seems to work in camel route):

       

      "expression" : "SELECT(FILTER(${sourceArrays:/jsonObjects<>},${/key}>4),${/value})",
      

       

       

              rhn-support-pleacu Paul Leacu (Inactive)
              tplevko@redhat.com Tomas Plevko (Inactive)
              Matej Kralik Matej Kralik
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: