ActiveVOS Designer User’s Guide

Tips on Providing Partner Link Data

Some processes require the configuration of partner link data as part of the test. Partner links can be specified along with wsa:EndpointReference information for their partnerRole or service names for their myRole. This is only necessary if the process makes use of some data within a partner link during some calculation.

To add partner link data to a Bunit test:

  1. In Outline view, select the Partner Links node, and select a partner link.
  2. In the Properties view, select the All tab, and select the Simulation category.
  3. Select the appropriate partner link, My Role or Partner Role.
  4. Select the Dialog button at the end of the row to open the Partner Link Data dialog.
  5. Type in an Endpoint Reference definition.
  6. Simulate the process and save the simulation as a BUnit test.

The following example shows the BUnit element that is added to your test.

<!-- Controls deployment of partner links to the test engine. -->
<abu:partnerLinks>
  <abu:partnerLink xmlns:ns="http://docs.active-
    endpoints.com/sample
    /bpel/loanprocess/2008/02/loanProcessCompleted.bpel"
    name="LoanApproval"
     processName="ns:loanProcessCompleted">
      <abu:partnerRole endpointReference="static">
       <wsa:EndpointReference 
         xmlns:s="http://docs.active-endpoints.com/
           sample/wsdl/riskAssessment/2008/
           02/riskAssessment.wsdl"
           xmlns:wsa="http://www.w3.org/2005
           /08/addressing">
           <wsa:Address>urn:x-vos:loancompany:
             RiskAssessmentServiceNEW
           </wsa:Address>
              <wsa:ServiceName
                 PortName="RiskAssessmentServicePort">
                        s:RiskAssessmentServiceNEW
              </wsa:ServiceName>
       </wsa:EndpointReference>
      </abu:partnerRole>
  </abu:partnerLink>
</abu:partnerLinks>