Trading Networks 10.7 | Administering and Monitoring B2B Transactions | webMethods Module for EDI | Before Creating the Service to Process EDI Documents | Logic to Include in the Service to Process EDI Documents | Processing the Document Iteratively, Segment by Segment
 
Processing the Document Iteratively, Segment by Segment
 
Customizing the EDI Flat File Schema
Logic for the Service to Process the Document Iteratively
You can process a document segment by segment instead of all at once. You can process either a single segment or a group of segments at one time. To process segment by segment, when you invoke the wm.b2b.edi:convertToValues service to convert data from String to an IData object, set the iterator input parameter to true. This causes the convertToValues service to process just a segment or a group of segments of the document. The convertToValues service determines how many segments to process based on the flat file structure information in the flat file schema for the EDI document. Because the convertToValues service uses the flat file schema, you will need to customize the flat file schema for the EDI document.