Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 2 Tutorials — Getting Started : Send 850 Txn To BC

Send 850 Txn To BC
In this tutorial, you can use TIBCO ActiveMatrix BusinessWorks and TIBCO BusinessConnect EDI Protocol powered by Instream running on one machine to send an X12 850 purchase order transaction to a trading partner.
Normally the trading partner is represented by another B2B engine running on another machine. However, this tutorial is run on a single machine. When the 850 transaction is sent to the trading partner, the transport properties are defined to store the request in a directory on the local file system.
The transaction set identifier information is as follows:
When you run the tutorial, the following operations occur:
1.
TIBCO Designer/TIBCO Business Studio parses the XML data, and sends the XML data to TIBCO BusinessConnect EDI Protocol powered by Instream.
TIBCO BusinessConnect EDI Protocol powered by Instream converts the XML data to X12 data.
2.
3.
4.
The following sections describe how to set up and run the tutorial:
Processes Overview
Process names are slightly different in TIBCO Designer and TIBCO Business Studio. For example, the Send 850 Txn to BC process in TIBCO Designer equals the Send_850_Txn_to_BC process in TIBCO Business Studio. The following description takes processes in TIBCO Designer as an example.
The X12_850 project contains several processes in two folders: X12 Message Processes and Error Advisory Processes.
The X12 Message Processes folder contains the following processes:
This process reads a file containing the XML equivalent of an 850 transaction, and sends the XML data to TIBCO BusinessConnect.
If you are actually communicating with a trading partner in this tutorial, when the trading partner receives your interchange containing the 850 transaction, it returns a 997 acknowledgment.
If you are actually communicating with a trading partner in this tutorial, when the trading partner received your interchange containing the 850 transaction, it returns a TA1 to acknowledge receipt of the interchange.
If you are actually communicating with a trading partner in this tutorial, when the Initiator receives the TA1 and 997 without any errors, it sends an acknowledgment to the private process to indicate the successful completion of the transaction.
The Error Advisory Processes folder contains processes, which are activated if TIBCO BusinessConnect is to send any advisory messages during the processing of the 850 transaction.
The Error Advisory Processes folder contains the following processes:
This process is activated when TIBCO BusinessConnect sends a timeout advisory due to not receiving a 997 acknowledgment for the original 850 transaction within the default timeout period of 1440 minutes (24 hours).
This process is activated when TIBCO BusinessConnect sends a general error advisory. Several conditions which cause this advisory to be sent. For example, it is sent when an invalid message is sent from TIBCO ActiveMatrix BusinessWorks to TIBCO BusinessConnect.
For more information on when TIBCO BusinessConnect sends a general error advisory, refer to the TIBCO BusinessConnect EDI Protocol powered by Instream User’s Guide.
This process is activated when TIBCO BusinessConnect sends an advisory indicating that a validation error occurred on the original 850 Transaction.
Running the Tutorial
To run the tutorial, you must send the 850 transaction from TIBCO Designer and check the sending results.
1.
See Sending the 850 Transaction.
2.
See Expected Results and Viewing the Audit Log.
Sending the 850 Transaction
To see the 850 transaction, click X12 Message Processes > Send 850 Txn To BC in TIBCO Designer.
Figure 8 shows the Send 850 Txn to BC process.
Figure 8 Send 850 Txn to BC
This process performs the following operations:
1.
2.
3.
Running the Process
This procedure describes how to run the process.
1.
2.
In the Tester tab, click Start testing viewed process .
Figure 9 Select Process to Load
3.
In the Select Processes to Load dialog:
a.
Select the check box next to Send 850 Txn To BC in the X12 Message Processes folder.
b.
4.
Click Load Selected to run the process.
If everything is configured and runs properly, you can get the result shown in Figure 10, XML 850 Transaction Read from a File.
Figure 10 XML 850 Transaction Read from a File
Expected Results
When the 850 transaction is received by TIBCO BusinessConnect EDI Protocol powered by Instream, several operations are performed.
1.
2.
3.
4.
What you can observe:
The Send 850 Txn activity of the Send 850 Txn To BC.process contains the output indicating that the 850 transaction is successfully sent to the trading partner.
The c:\testEDI\out directory contains a file, which contains the X12 850 transaction that is sent to the trading partner by TIBCO BusinessConnect EDI Protocol powered by Instream.
Viewing the Audit Log
This procedure describes how to view the audit log on the Initiator machine.
1.
2.
In the left panel, expand BusinessConnect > Log Viewer.
3.
4.
Select items from the following lists: Status, Connection, and Date Range.
5.
Click Search to search for the matching audit logs.
Figure 11 Send 850 Txn To BC Audit Log
6.
Click Details in the search results area for a specific operation to view details of the transaction.
Figure 12 Transaction Details for the Send 850 Txn To BC Audit Log
 
7.
Figure 13 RECEIVED_FROM_PP
The Detail View provides you with all message details. It also indicates whether a particular message can be resent or saved.
Retrieving the User Key for Outbound Documents
User key retrieval after the outbound documents are converted from XML to EDI is recorded in the row User Key: User Key: AB Purchase Order Number.

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved