How to loop on DocList in a Java service

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

Hi,

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

Hope this helps.

~Snehal.