Trading Networks 10.3 | Administering and Monitoring B2B Transactions | webMethods Module for EDI | Processing Inbound TRADACOMS Documents Using Trading Networks | Coding Services to Process File and Batch Documents When Using TRADACOMS
 
Coding Services to Process File and Batch Documents When Using TRADACOMS
 
Information in the Pipeline that Your Service Can Access When Using TRADACOMS
Logic to Process a File Document
Logic to Map a File Document to an Internal-Format Document
The logic you design in your processing service (set in the Execute a Service action) depends on the types of documents that Module for EDI is splitting from the original EDI document. This information is based on what is specified in the TRADACOMS/splitOption EDITPA variable.
If TRADACOMS/splitOption is...
Module for EDI creates...
File
File, batch, and transmission documents from the original EDI document. When the split document is of type:
*File. Create a service that processes the file contained in the File document. For example, form an internal-format document based on the file information and send the internal-format document to an internal application, such as a back-end system. For information about how to create this service, see Logic to Process a File Document.
*Batch and transmission. Do not create a service. All processing for these EDI documents is handled in the processing of the file documents. You could set up processing rules for the batch and transmission documents that have no processing actions selected or set up your processing rules so the transmission document falls through to the Default rule.
Batch
Batch and transmission documents from the original EDI document. When the split document is of type:
*Batch. Create a service that processes each file within the batch. For information about how to create this service, see Logic to Map a File Document to an Internal-Format Document.
*Transmission. Do not create a service. All processing for the EDI document would be complete in the processing of the Batch document. You could set up a processing rule for the Transmission document that selects no processing actions or set up your processing rules so the Transmission document falls through to the Default rule.
Transmission
Transmission documents from the original EDI document. You would set the TRADACOMS/splitOption to Transmission if you want to simply deliver the EDI document to its receiver.
For more information about how to deliver a document, see Delivering the Outbound EDI Document.
The services you create can use information that is in the pipeline. For information about the data that is in the pipeline when your service is invoked, see Information in the Pipeline that Your Service Can Access When Using TRADACOMS.