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.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  Transforming multiple loops

    Posted 11/11/10 07:17 PM

    Team,

    I have input xml with multiple orders, each order having multiple order lines. I need to map this to output having different element names.

    I have two loops (orders and items inside orders) I am using appendToDocList for each loop. But my final output has only last order and my all my previous orders are wiped out.

    Please see the attachment for complete package.

    Thank you in advance for all of your help.
    MultipleDocuments.zip (11.3 KB)


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 2.  RE: Transforming multiple loops

    Posted 11/11/10 07:25 PM

    You are using the appendtoDocumentList in a wrong way …
    When you call this service… map the target o/p list to “toList” pararms, and map the output toList to again to same target o/p list…

    Don’t forget the drop toList after this step from pipeline…
    Please refer to the documentation for more on this service…


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 3.  RE: Transforming multiple loops

    Posted 11/11/10 08:51 PM

    I am not getting what you are saying. Would you mind modifying the code and send it to me?


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 4.  RE: Transforming multiple loops

    Posted 11/11/10 09:48 PM

    here you go… to be honest… the document structure you are using is little weired but … test with proper inputs…
    MultipleDocuments.zip (12 KB)


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods