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.  Nested list LOOP issue

    Posted Fri January 17, 2014 05:15 AM

    Hello,

    I have an inbound document type which contains a list:
    -indoc
    –e
    –e
    –…

    I have an outbound document type which contains 2 nested lists:
    -outdoc
    –f
    —g
    —g
    —…
    –f
    —g
    —g
    –…

    I need to loop over indoc/e to populate outdoc/f[0]/g. However, when I setup the LOOP step with input array = “indoc/e” and output array = “outdoc/f[0]/g”, the map inside my loop still shows multiple g element, which doesn’t seem normal.

    Is there anything I’m doing wrong? Should I use another approach?
    Thanks in advance for your help.


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


  • 2.  RE: Nested list LOOP issue

    Posted Fri January 17, 2014 12:50 PM

    Nicolous,

    Is the f also a doclist?

    If yes then you need to loop on f first and then add loop g and create a map step under g loop and check the pipeline editor ti should show correctly.
    outdoc/f/g"

    outArray outdoc/f
    ------------------>Loop g
    ---------------------->Map step to check if the g show as document instead of doclist.

    HTH,
    RMG


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


  • 3.  RE: Nested list LOOP issue

    Posted Mon January 20, 2014 05:01 AM

    Thank you rmg for your suggestion. (btw, yes f is also a doclist.)
    So what I did as per your suggestion is :
    -LOOP over f
    –LOOP over e with output array f/g
    –MAP

    And it worked as expected! :smiley:
    Thanks again!


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