Outbound Batching

With TIBCO BusinessConnect Container Edition EDI Protocol powered by Instream X12 protocols, outbound transactions can be sent individually with one outgoing EDI document containing only one transaction enclosed in a single interchange envelope. Outbound transactions can also be batched together into an EDI document that contains multiple interchange envelopes, and each envelope contains multiple transactions of the same type. However, the above batching functionality cannot batch transactions targeting different trading partners into a single EDI document. The outbound batching has this functionality in Gateway protocol. Transactions of different types and targeting different trading partners can be batched together into a single outgoing EDI document. Such EDI documents contain multiple interchange envelopes, and each envelope contains one type of transaction targeting one trading partner.

By providing this batching functionality, the Gateway protocol represents the commercial VANs where batches of transactions are distributed to the target trading partners.

Multiple trading partners can share the same Gateway for batching X12 transactions by specifying the same Gateway name in their batching configuration. The batch EDI document contains multiple interchange envelopes, and each interchange envelope contains a batch of transactions for one trading partner.

A diagram of outbound batching is shown in the figure below.

Figure 30: Outbound Batching

The X12 transaction goes through message validation and conversion from the XML request to the standard EDI format. The messages that are configured to be delivered in batch are persisted into the database after successful message validation and conversion.

You configure a maximum count of messages or a scheduled time interval. When a batch of persisted transactions reaches this count or interval, all the persisted transactions are retrieved back from the database and collated into a single interchange envelope. Each transaction in the resulting EDI document is assigned a unique control number within the interchange envelope before the batch is transmitted to your trading partner. The batch is transmitted using the transport that you have chosen as a default.

Outbound batching is enabled by the Batching and Scheduled Transmission options for an X12-enabled trading partner.
For more information on these options, refer to the chapters on setting up of the trading partners in the configuration guides for X12 protocols.

The Gateway protocol provides two mechanisms of controlling the batching of X12 transactions at the trading partner level:

There are also additional options that extend the batching behavior at the transaction level. These options are:

To learn more about these options, see TIBCO BusinessConnect Container Edition EDI Protocol Powered By Instream, X12 Configuration, Outbound Action Tab.