Read and Write Primary Document in IBM B2B Sterling Integrator using MESA
Read and Write Primary Document while implementing a Custom Service in IBM B2B Sterling Integrator using MESA Studio . public WorkFlowContext processData(WorkFlowContext wfc) throws WorkFlowException { Document outputDocument; String codeListOutputXML = null; OutputStream outputStream; BufferedOutputStream bos; String svcName = wfc.getServiceName(); XLogger log = new XLogger("SI_Auto_DeployImpl", svcName); wfc.harnessRegister(); wfc.setBasicStatus(WorkFlowContext.SUCCESS); try { CodeListDeployer codeListDeployer = new CodeListDeployer(); // Read the input from PrimaryDocument Document srcDoc = wfc.getPrimaryDocument(); codeListOutputXML = codeListDeployer.readCodeListExcel(srcDoc.getInputStream()); //Write output to new PrimaryDocument outputDocument = wfc.newDocument(); ...