how to convert a document to String

Hi,

we have a requirement where the service receives input document as runtime and variables in this document are not static,i.e the variables in the input document changes each time when we run the flow servcie . The requirement is to convert this document to string separated by a comma. Is there any option which we can do it in flow service?

Eg:Input:Emp document contain fields empno=1
ename=vhhh
sal=4567

output:Emp String=empno=1,ename=vhhh,sal=4567

Review the IDataCursor methods within the Java API. As long as the document doesn’t contain nested documents, this is easily doable.