Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.
This article explains about how trading partner agreement can be configured and used in webmethods.io B2B.
It is assumed that readers of this article know how to set up B2B enterprise profile and partner on webmethods.io B2B platform.
Trading Partner Agreement (TPA) definitions are a set of parameters that help you tailor how documents are exchanged between two trading partners.
Each TPA contains specific information about how documents must be exchanged between two trading partners.
a. The partner that represents the sender of the documents. b. The partner that represents the receiver of the documents. c. An agreement ID that identifies the type of TPA (for example, TPAs for EDI business documents use the agreement ID EDITPA).
What’s the use of TPA?
System Templates: These templates enable the partners using certain types of business documents to function as intended. These templates cannot be modified. For example, RNIFV1, EDIV1.
Custom templates: We can create our own TPA templates based on specific document exchange parameters.
Proposed. When the agreement status is proposed, a TPA is in a draft status. You can modify the TPA fields and data input.
Agreed. An agreed status means that the TPA is final. When the agreement status is agreed, the data statuses take effect.
Disabled. The disabled status means the TPA should not be used. If you are using a TPA and no longer want to use it, you can disable it. When you disable a TPA, the TPA remains in the webMethods.io B2B but is considered inactive.
In our case, we are sending the inbound transaction to B2B using the HTTP protocol.
We will be adding extended criteria conditions to check the particular field value in the payload.
While creating the definition we have added condition on processing mode.
If the processing mode is testing, then only EDITPA will get invoked.
Payload
ISA*00* *00* *01*123456777 *01*987654333 *031008*1040*U*00401*000000001*1*T*>~ GS*IN*123456777*987654333*20030627*1304*1*X*004010~ ST*810*01403001~ BIG*20030627*SA*20030627~ FOB*PB~ PKG******01~ N9*AH*548177~ MSG*THIS PURCHASE ORDER IS SUBJECT TO THE SAME TERMS AND~ TDS*12~ SAC*A*B280***20.00***2.00****02~ CTT*1**120*LB~ SE*10*01403001~ GE*1*1~ IEA*1*000000001~
In our case flow service is invoked from B2B
Inside the flow service we are logging the TPA data fetching from B2B using GetTPA operation available in webMethods.io B2B application.