Module for EDIINT Version 8.2 SP1.November 2013 | Installing and Using EDIINT Module | Concepts | Inbound EDIINT Processing with AS1 and AS2 | Processing Inbound EDIINT Documents
 
Processing Inbound EDIINT Documents
Module for EDIINT provides all logic required to perform the transport-level processing for inbound EDIINT documents. You can use Trading Networks to add business-level processing for the payloads of your EDIINT documents.
Note:
For information about how Module for EDIINT processes inbound MDNs, see Processing Inbound EDIINT MDNs.
The following diagram illustrates how Module for EDIINT performs transport-level processing for an inbound EDIINT document. The diagram also shows how, if you want to perform business-level processing, you can submit the payload of the EDIINT document to Trading Networks for further processing.
Step
Description
1
The wm.EDIINT:receive service accepts the inbound document.
2
The wm.EDIINT:receive service uses the TN document types to determine the type of document. The document matches the EDIINT TN document type that is installed into Trading Networks when you install Module for EDIINT.
After determining the TN document type, the wm.EDIINT:receive service forms a BizDocEnvelope for the inbound document and places it in the pipeline in the bizdoc variable. A BizDocEnvelope contains the original document and includes additional information that Trading Networks requires for routing and processing the document. One piece of information that Trading Networks can use in the selection of a processing rule is the user status. The EDIINT recognizer sets the user status to “ProcessMsg.”
After forming the BizDocEnvelope, the wm.EDIINT:receive service sends BizDocEnvelope to Trading Networks for processing.
3
Trading Networks determines the processing rule to use for the document. For inbound EDIINT documents, Trading Networks uses the EDIINT Process Message processing rule that is installed into Trading Networks when you install Module for EDIINT. It selects this processing rule because the TN document type is EDIINT and the user status is “ProcessMsg.”
This processing rule performs the Execute a Service action to invoke the wm.EDIINT.rules:processMsg service. The service processes the message by opening the MIME or S/MIME package and then decrypting and/or verifying the signature of the message.
The remaining steps represent actions specified in the EDIINT Process Message processing rule.
Step
Description
4
The wm.EDIINT.rules:processMsg service determines whether the sender of the EDIINT document requested an MDN.
*If the sender requested an MDN, the wm.EDIINT.rules:processMsg service determines whether the sender has requested a signed or an unsigned MDN. The service creates the appropriate type of MDN and sends the MDN back to Trading Networks for delivery. Trading Networks can deliver the MDN synchronously or asynchronously. For more information about how Trading Networks delivers the MDN, see Sending Outbound EDIINT MDNs. After sending the document to Trading Networks, continue with the next step.
*If the sender did not request an MDN , continue with the next step.
5
The wm.EDIINT.rules:processMsg service invokes the wm.EDIINT.rules:processPayload service, which determines whether you want to send the payload of the EDIINT document to Trading Networks for processing.
You define whether you want Module for EDIINT to send EDIINT payloads to Trading Networks for processing when you configure the module.
6
If the payload is to be sent to Trading Networks for processing (for example, to perform business-level logic), submit the payload. The payload can be either an EDI document or a non-EDI document (for example, an XML document).
*EDI documents. If the payload is an EDI document, you must set up Module for EDI and Trading Networks to process the EDI document. For example, use Module for EDI to install TN document types for the EDI document and create a processing rule to process the EDI document. For more information about using Module for EDI with Trading Networks to process EDI documents, see webMethods Module for EDI Concepts Guide.
*Non-EDI documents. If the payload is not an EDI document, you must define the TN document types that Trading Networks can use to recognize the payload and the processing rule that Trading Networks should use to process the document.