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

Removing a IData from a IData Array in runtime

  • 1.  Removing a IData from a IData Array in runtime

    Posted Sat July 11, 2009 07:13 PM

    I am trying to remove Document (IData) which is null from the DocumentList (IDataArray) in runtime. The structure of the documentList or document is dynamic. For example, If a DocumentList contains 4 Documents, but the third document is null. The expected output is a DocumentList with 3 Document and that Document which is null should be deleted. Is there a cursor or method readily available in webMethods java API to remove the IData from the IDataArray using the index?


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


  • 2.  RE: Removing a IData from a IData Array in runtime

    Posted Mon July 13, 2009 10:30 AM

    Hi,
    There is no out of the box solution. You have to regenerate the IData array.
    You can use a list in java service as a temporary storage and add your non-null IData objects to it and then regenerate the new array.

    Cheers
    Guna
    http://www.nibodo.com


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