Integration

Get Involved. Join the Conversation.

Topic

    Vitor Souza
    Order by array variable
    Topic posted October 30, 2019 by Vitor SouzaGreen Ribbon: 100+ Points, tagged Integration, Mapping, Orchestration, REST 
    37 Views, 3 Comments
    Title:
    Order by array variable
    Summary:
    Order by array variable
    Content:

    Hello,

     

    We have a webservice that returns an array for us with two dimensions “Name and Sequence”.

    I need to sort this array by the second dimension "sequence" and send the names  to another webservice (already sorted).

     

    Does anyone know any alternatives to do this? We saw that Javascript and variables only work with "text" type.

     

    Thanks!

    Comment

     

    • Hemanth Lakkaraju

      You can use xsl:sort function within XSLT and use upload mapping option in OIC.

      • Vitor Souza

        Hello

        Sorry I didn't find anywhere in my mapping this sort function. How do I do that?

        thanks.

        • Hemanth Lakkaraju

          It's not a supported function in OIC UI. But the XSLT engine supports the function. So you can export the integration, unzip it, find the relevant mapping and then manually edit the xslt (you can use jdeveloper as well) and import the xslt from UI in integration canvas.