webMethods

webMethods

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.  Problem with list in document list in a loop

    Posted Tue September 11, 2007 06:16 PM

    Hello

    I loop trough an array in a loop statement.
    In the loop I create a output doc witch has some fields and also an list, lets call it partyList.
    In the loop I add 2 parties to the partyList from the output doc.
    All goes fine, I go 3 times through the loop
    when I leave the loop than I have my output list with 3 elements. each element has a partyList.
    But each element has the last partyList, not the one I maped to it in the loop.

    I installed IS_6-5_Fix45 but that did not helped

    I declared the output doc at the loop statement

    This constuction worked in version 6.0.1
    Since IS 6.5 SP2 It shows the above unwanted behaviour.

    I hope I described it in a clear way, If not , please let me know.
    Thanks for your help


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


  • 2.  RE: Problem with list in document list in a loop

    Posted Tue September 11, 2007 08:36 PM

    Please post your loop statements, with all details.


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


  • 3.  RE: Problem with list in document list in a loop

    Posted Tue September 11, 2007 10:01 PM

    Try dropping the from item and the item mapped (outputDoc/partyItem) to appendToDocumentList.

    Regards,
    Pradeep


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


  • 4.  RE: Problem with list in document list in a loop

    Posted Thu November 22, 2007 02:35 AM

    hi, i have a problem append a string to string list,
    you said i have to use appendToSTringList and drop the from item, but i don’t understand it. are the drop statement still in the same step (MAP step)?
    i tried like that and i’ts still not work… :confused:


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


  • 5.  RE: Problem with list in document list in a loop

    Posted Tue November 27, 2007 04:57 PM

    Za

    The appendToStringList or appendToDocumentList both take fromItem, fromList and toList as inputs, where the latter two are arrays. Now in order for the append to work right you need to map the input value/list to fromItem/fromList and map toList to toList as in the demo.jpg. The toList is the final list that contains the items you added.

    PS You will need to add toList to the pipeline in

    HTH, Roh
    demo.jpg


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


  • 6.  RE: Problem with list in document list in a loop

    Posted Sat December 01, 2007 04:08 AM

    Thanks RO, sorry for troubling you, i didn’t read the instruction carefully. :o


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