Hybrid Integration 10.1 | Integrating On-Premises Applications | Document Conventions | Processing Flat Files Overview | Processing Outbound Flat Files
 
Processing Outbound Flat Files
To process an outbound flat file, use the pub.flatFile:convertToString service. This service uses a flat file schema to create a flat file outbound from Integration Server. The input of this service is an IS document (IData object) and a flat file schema, and the output of this service is a flat file. For more information about the pub.flatFile:convertToString service, see webMethods Integration Server Built-In Services Reference .
Note: The flat file resulting from pub.flatFile:convertToString will be only as complete as the information translated from the original flat file to the IS document. If you specified only certain parts of the flat file to translate to the IS document (via the flat file schema), only those parts will be translated back to the flat file.
The general process for outbound documents is as follows:
Outbound Flat File Process
To create and send an outbound flat file, use the following basic steps:
Step 1
Create a flat file schema to be used for conversion of the object. You use Software AG Designer to create the flat file schemas used to create outbound flat files. For steps to create flat file schemas, see webMethods Service Development Help.
Step 2
Convert the IS document to a flat file. Invoke the pub.flatfile:convertToString service to convert an IS document (IData object) to an outbound flat file using the flat file schema you created. This service enables you to specify delimiters to be used as record, field, and subfield separators as well as optionally specify an outputFileName so that the output also will be written to a file.
Note: You can build the document (IData object) to be converted to a flat file using IS document type from the flat file schema. Add a document reference variable that points to the IS document type in the pipeline. Build the document by using the pipeline to map data into the document reference variable. Then, in the pipeline for the pub.flatFile:convertToString service, map the document reference variable to the ffValues input variable.
Step 3
Send the flat file. You can send a flat file using many methods, including via HTTP, SMTP, and FTP. For more information, see Sending and Receiving Flat Files.

Copyright © 2015- 2017 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.