IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Sorting values in documentList in "alphabetical" order

    Posted Wed October 26, 2022 08:55 AM

    I want to sort the values on bases of alphabetical order.

    I have used pub.document:sortDocuments but no luck, if anybody have any idea please guide.


    #webMethods
    #Developer-Portal
    #webMethods-cloud
    #Flow-and-Java-services
    #Service-Designer
    #Integration-Server-and-ESB
    #API-Management
    #webMethods-io-Integration


  • 2.  RE: Sorting values in documentList in "alphabetical" order

    Posted Wed October 26, 2022 09:21 AM

    Hi Ahamed,

    can you provide some more details please?
    Esp. the inputs for pub.document:sortDocuments as well as a sample document list.

    Regards,
    Holger


    #Service-Designer
    #API-Management
    #webMethods-io-Integration
    #webMethods-cloud
    #Flow-and-Java-services
    #Developer-Portal
    #Integration-Server-and-ESB
    #webMethods


  • 3.  RE: Sorting values in documentList in "alphabetical" order

    Posted Wed October 26, 2022 10:00 AM

    Iam sorting on bases of name value, order-ascending compareStringAs-string
    sampleInput:


    headerVersion
    1.0


    txRef
    89765


    headerTimestamp
    DD:mm:YYYY


    landLineNo
    ******


    customerID
    123


    urlEndPoint
    REST



    Expected output:



    customerID
    123


    headerTimestamp
    DD:mm:YYYY


    headerVersion
    1.0


    landLineNo
    ******


    txRef
    89765


    urlEndPoint
    REST


    #API-Management
    #Integration-Server-and-ESB
    #webMethods-cloud
    #Developer-Portal
    #Flow-and-Java-services
    #webMethods-io-Integration
    #webMethods
    #Service-Designer


  • 4.  RE: Sorting values in documentList in "alphabetical" order

    Posted Wed October 26, 2022 11:36 AM


  • 5.  RE: Sorting values in documentList in "alphabetical" order

    Posted Wed October 26, 2022 11:36 AM


  • 6.  RE: Sorting values in documentList in "alphabetical" order



  • 7.  RE: Sorting values in documentList in "alphabetical" order

    Posted Wed October 26, 2022 12:19 PM

    Additional Info:

    as sortCriteria is a doc-list input you will have to create a document instance sortCriteria under the list and then map the values as already described above.
    By doing so there can be multiple sort criterias which will be applied in the order given in the list.
    See example in the IS Built-In-Services Reference, which Kasi has already referred to with his screenshot.

    Regards,
    Holger


    #API-Management
    #webMethods-io-Integration
    #Integration-Server-and-ESB
    #webMethods-cloud
    #Developer-Portal
    #Service-Designer
    #Flow-and-Java-services
    #webMethods