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
Expand all | Collapse all

Append document list to a recursive documentlist

  • 1.  Append document list to a recursive documentlist

    Posted Fri February 27, 2004 04:27 PM

    Tom,

    I believe it will work.

    At first you have to make all the document lists including recursive documentlist as temporary documents and inside the loop (OutputDoc)when you are done with mapping as a last step use appendToDocumentList and map the tmp documents(childList,childList,OutputDoc) to the final doucmentlist OutputDoc(childList,childList).

    OutputDoc (create tmp document)
    Value1
    Value2
    ChildList(create tmp document)
    Value1
    Value2
    ChildList(create tmp document)
    Value1
    Value2

    Sorry if i am confusing.

    HTH.


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


  • 2.  RE: Append document list to a recursive documentlist

    Posted Sat February 28, 2004 12:19 AM

    Loop over InputDoc.
    Map InputDoc->value1 to OutputDoc->value1 and InputDoc->value2 to OutputDoc->value2
    Map OutputDoc to OutputDoc->OutputDoc (OutputDoc structure now will be OutputDoc->value1, value2, OutputDoc)
    End of Loop

    At the end of the loop, the required record will be available within the OutputDoc structure.

    HTH


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


  • 3.  RE: Append document list to a recursive documentlist

    Posted Wed March 03, 2004 11:37 PM

    Thanks for the quick response,

    Is it possible to make a more dynamic solution. I don’t know the size of the InputDoc (it could be from 1 to 30 documents inside, so that the OutputDoc can contain many child lists) Ex.

    OutputDoc (0)
    Value1
    Value2
    ChildList(1)
    Value1
    Value2
    ChildList(2)
    Value1
    Value2



    ChildList(29)
    Value1
    Value2

    TCS.


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