Insert a Participant
To create a new Host or Partner participant:
Procedure
|
1.
|
Select the Project tab in TIBCO Business Studio. |
|
2.
|
Select project_name > INIT_REQ > write > op_insertparticipant. |
The process insertparticipant
opens in the design window.
|
3.
|
Select the resource ReadFile. |
In the Activity Input window, the fileName
parameter shows which sample file is used for this operation: INSERTParticipantREQ.xml
listed in GlobalVariables/CMI/cmi.doc.path
.
|
5.
|
To edit the sample XML file, go to BCCE_HOME\protocols\cmi\examples\SampleDocs\ INSERTParticipantREQ.xml |
|
6.
|
Open the file with a text editor. |
To insert the participant, modify the sample file. The INSERTParticipantREQ.xml
file for a participant is shown below.
<?xml version="1.0" encoding="UTF-8" ?>
- <INSERTParticipantREQ xmlns="http://www.tibco.com/AX/BC/CMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.tibco.com/AX/BC/CMI ../../src/com/tibco/ax/cmi/resource/cmipayload.xsd
">
- <Participant name="partner1
" isActive="true
" type="Partner
"> <ListOfBizLocations>
<BizLocation name="Headquarters
" addr1="PA
"/>
- <BizLocation name="loc1
">
<PrimaryLegalContact firstName="1
" lastName="1
"/>
<PrimarySupportContact firstName="3
" lastName="2
"/>
- <ListOfContacts>
<BizContact lname="1
" fname="1
" type="Legal
"/>
<BizContact lname="2
" fname="3
" type="Support
"/>
</ListOfContacts>
</BizLocation>
</ListOfBizLocations>
- <ListOfDomainIds>
<DomainId domainName="AS2_ID
" idName="12345
"/>
</ListOfDomainIds>
- <ListOfEnabledProtocols>
- <EnabledProtocol name="EZComm
">
<DefaultAS2DomainId idName="12345
"/>
- <Transports>
<HttpTransport name="bbc
" url="http://localhost:8080/EZComm
"/>
</Transports>
</EnabledProtocol>
</ListOfEnabledProtocols>
</Participant>
</INSERTParticipantREQ>
All the variables (in the example above highlighted in bold) can be modified according to your requirements.
Insert a Host
To insert a Host, modify the sample file. INSERTParticipantREQ.xml
modified for a host is shown below.
<?xml version="1.0" encoding="UTF-8" ?>
- <INSERTParticipantREQ xmlns="http://www.tibco.com/AX/BC/CMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.tibco.com/AX/BC/CMI ../../src/com/tibco/ax/cmi/resource/cmipayload.xsd
">
- <Participant name="Host
" isActive="true
" type="Host
"> <ListOfBizLocations>
<BizLocation name="Headquarters
" addr1="PA
"/>
- <BizLocation name="loc1
">
<PrimaryLegalContact firstName="1
" lastName="1
"/>
<PrimarySupportContact firstName="3
" lastName="2
"/>
- <ListOfContacts>
<BizContact lname="1
" fname="1
" type="Legal
"/>
<BizContact lname="2
" fname="3
" type="Support
"/>
</ListOfContacts>
</BizLocation>
</ListOfBizLocations>
- <ListOfDomainIds>
<DomainId domainName="AS2_ID
" idName="12345
"/>
</ListOfDomainIds>
- <ListOfEnabledProtocols>
- <EnabledProtocol name="EZComm
">
<DefaultAS2DomainId idName="12345
"/>
</EnabledProtocol>
</ListOfEnabledProtocols>
</Participant>
</INSERTParticipantREQ>
Procedure
|
1.
|
Enter the Participant Name (Host ). |
|
2.
|
For the Type, enter Host . |
|
3.
|
Edit other data as desired. |
|
4.
|
Remove the information about transports, which applies to the Partner. |
|
6.
|
In the opened TIBCO Business Studio project, click the dropdown icon next to the BWApplication icon. |
|
7.
|
In the Run Configurations dialog, expand BusinessWorks Application > BWApplication. |
|
8.
|
From the list of the processes displayed, you can select one or multiple items based on the type of transaction you want to process. In this tutorial, click the Receive Notification message. |
The Select Processes to Load dialog appears.
|
10.
|
Select the process op_insertparticipant and click on Load and Start Current. |
|
11.
|
The process is executed. |
|
•
|
If it is successful, you can see the Host participant added to the BusinessConnect Container Edition Admin Server under BusinessConnect > Participants. |
|
•
|
If the operation is not successful: |
|
—
|
You can debug it in TIBCO Business Studio by checking the output tab of the SendRequest activity in op_instertparticipant process. |
Check the response file that has been created in the logs folder (path is provided for the global variable cmi.log.path
).
|
—
|
You can also use the Log Viewer function in BusinessConnect Container Edition Admin Server to see the summary of this operation, including the failure causes. |
To learn more about viewing audit logs, see Viewing Logs.
Insert a Partner
To insert a Partner, modify the sample file. INSERTParticipantREQ.xml
file modified for a partner is shown below.
<?xml version="1.0" encoding="UTF-8" ?>
- <INSERTParticipantREQ xmlns="http://www.tibco.com/AX/BC/CMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.tibco.com/AX/BC/CMI ../../src/com/tibco/ax/cmi/resource/cmipayload.xsd
">
- <Participant name="Partner1
" isActive="true
" type="Partner
"> <ListOfBizLocations>
<BizLocation name="Headquarters
" addr1="PA
"/>
- <BizLocation name="loc1
">
<PrimaryLegalContact firstName="3
" lastName="3
"/>
<PrimarySupportContact firstName="5
" lastName="5
"/>
- <ListOfContacts>
<BizContact lname="3
" fname="3
" type="Legal
"/>
<BizContact lname="5
" fname="5
" type="Support
"/>
</ListOfContacts>
</BizLocation>
</ListOfBizLocations>
- <ListOfDomainIds>
<DomainId domainName="AS2_ID
" idName="54321
"/>
</ListOfDomainIds>
- <ListOfEnabledProtocols>
- <EnabledProtocol name="EZComm
">
<DefaultAS2DomainId idName="54321
"/>
- <Transports>
<HttpTransport name="bbc
" url="http://localhost:8080/EZComm
"/>
</Transports>
</EnabledProtocol>
</ListOfEnabledProtocols>
</Participant>
</INSERTParticipantREQ>
Procedure
|
1.
|
Enter the name for the Partner (Partner1 ). |
|
2.
|
For the Type, enter Partner . Edit other data as desired |
|
3.
|
Edit the transport information, which is needed for the partner participant. |
|
4.
|
Be sure to enter a different idName from the one used for the Host. |
|
6.
|
In the opened TIBCO Business Studio project, click the dropdown icon next to the BWApplication icon. |
|
7.
|
In the Run Configurations dialog, expand BusinessWorks Application > BWApplication. |
The Select Processes to Load dialog appears.
|
8.
|
Select the process op_insertparticipant and click on Load and Start Current. |
|
9.
|
The process is executed. |
|
—
|
If it is successful, you can see the Partner participant added to the BusinessConnect Container Edition Admin Server under Partner Management. |
|
—
|
If the operation is not successful: |
You can debug it in TIBCO Business Studio by checking the output tab of the SendRequest activity in op_instertparticipant process. Check the response file that has been created in the logs folder (path is provided for the global variable cmi.log.path
). You can also use the Log Viewer function in BusinessConnect Container Edition Admin Server to see the summary of this operation, including the failure causes. To learn more about viewing audit logs, see Viewing Logs.