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

How to loop on DocList in a Java service

  • 1.  How to loop on DocList in a Java service

    Posted Thu October 18, 2007 02:41 PM

    Hi All,
    for performance, I’m rewriting a flow service into a java service. Its input contains a DocumentList. I’m getting that from pipeline with

    IData[]  IDs = IDataUtil.getIDataArray( pipelineCursor, "IDs" );

    and then accesing it with

    IDs[i]

    The Doc contains only a String, and I thought it will be “casted” to java String type, but printing

    IDs[i].toString()

    will return something like “>>>BasicData:id=1<<<” (for an item with value “1”).

    How can make it to return just “1”?

    Thanks in advance,
    Sandro


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


  • 2.  RE: How to loop on DocList in a Java service

    Posted Thu October 18, 2007 03:34 PM

    Hi,

    Check a service in package WmSamples - sample.idata:readAndWriteDocumentList

    Hope this helps.

    ~Snehal.


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