Java Task Service - Sterling Integrator

import com.sterlingcommerce.woodstock.workflow.Document;

import java.io.InputStream;

import java.io.InputStreamReader;

import java.io.BufferedReader;



Document doc = wfc.getPrimaryDocument();

Document outPutDoc = wfc.newDocument();;

InputStream inS = doc.getInputStream();

BufferedReader br = new BufferedReader(new InputStreamReader(inS));

String strData = “<SampleData>”;

String strLine;

while ((strLine = br.readLine()) != null) {

    strData = strData.concat(strLine);

}

br.close();

strData = strData + “</SampleData>”;

outPutDoc.setBody(strData.toString().getBytes());

wfc.putPrimaryDocument(outPutDoc);

Comments

Popular posts from this blog

Hibernate Connection Fails if there is Database inconsistency or DB fail-over (Oracle RAC)

​ Configure External Databases to IBM Sterling B2B Integrator