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.  Loop step

    Posted Sat July 26, 2003 06:24 PM

    I have a document which looks like

    Transaction container
    some elments

    Transaction
    Transaction[0]
    Transaction[1]
    Transaction[2]

    the in-array for my loop statement is /doc/TransactionContainer/Transaction

    if my out-array is specifies as
    /temp/TransactionContainer/Transaction,

    it does not map the doc to temp and all Transaction[i] in temp doc are null. what could be the reason for this?


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


  • 2.  RE: Loop step

    Posted Sat July 26, 2003 06:54 PM

    If your original document list and temp doc list is having similar structure,the directly map the root elements,your temp Document list structure will hold the values and work fine.

    or else create a temp Document(remember not Documentlist) and do a loop on your in-array as you have specified(is /doc/TransactionContainer/Transaction )
    and inside the loop map each iteration of Transaction[i] to this temp Document in a map step and immdiately invoke pub.list:appendToDocumentList and service and trick is drop the temp Document after appending to your temp original DocumentList.

    HTH


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


  • 3.  RE: Loop step

    Posted Sat July 26, 2003 07:56 PM

    thanks, RMG. the stuff works other ways but i couldnt figure out why it didnt in the loop statement.
    mow


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