IBM FileNet P8, Version 5.2.1            

Partner Links function

The Partner Links function in the Expression Builder dialog displays the Partner Link header for Invoke partner links.

The Partner Link header is stored in a field that is generated at transfer time and is called F_EndPointRef<partner-link-name>. You can modify the header by modifying the generated field F_EndPointRef<partner-link-name> to accomplish the following tasks.

Message header

In the example header shown above, the name of the Invoke Partner Link is InvAuth1. To modify the header, you use either the Assign system function or Assignment at a step to assign a modified header to the Partner endpoint reference—in this case F_EndPointRefInvAuth1.

Encoding

If you need to place sensitive information in the F_EndPointRef<partner-link-name>, you should use the encode() function so the sensitive information is encoded. The workflow system will decode the information that has been encoded before sending the message.

Authentication

In the example header above, the service being invoked requires authentication, so the Security section is included in the header. In general, you will replace USERNAME and PASSWORD with variables, and the user will enter these values at some step before the Invoke step. You use an assignment to insert those values into the header.

  1. In an Assign system function or an Assignment in a general step before the Invoke step, enter any temporary name for the assignment, then open the Expression Builder.
  2. In the Expression builder, you edit the header as follows to make it a valid string expression:
    1. Cut the name (to the clipboard) (in this example, F_EndPointRefInvAuth1) from the beginning of the message. We will paste it as the name of the assignment.
    2. If you are not defining a variable final endpoint, delete the Optional Final Soap Address line shown in the box.
    3. Add double quotation marks (") to each existing double quotation mark, and at the beginning and end of the message.
    4. Replace USERNAME and PASSWORD with the appropriate field names (for example, MyUserName and MyPassword) and add the closing and opening quotes and pluses to insert the field names into the string expression.  
          "<wsa:EndPointReference xmlns:wsa=""http://schemas.xmlsoap.org/ws/2003/03/addressing"">    
                  <wsa:ReferenceProperties>           
                         <wsse:Security xmlns:wsse=""http://schemas.xmlsoap.org/ws/2002/12/secext"">      
                               <wsse:UsernameToken>                           
                                      <wsse:Username>" + MyUserName + "</wsse:Username>                               
                                      <wsse:Password>" + MyPassword + "</wsse:Password>                       
                               </wsse:UsernameToken>          
                         </wsse:Security>     
                 </wsa:ReferenceProperties>
          </wsa:EndPointReference>"
  3. Close the Expression Builder, then paste the name of the endpoint reference (in this example, F_EndPointRefInvAuth1 into the Name field of the assignment.
Tip: In the unlikely case that you want to enter the user name and password directly into the message, you enter the strings with no quotes and no pluses.

Alternate endpoint

Alternate endpoint

The WSDL of the invoked Web Service specifies the endpoint. You can specify a different endpoint using the following procedure. You will replace the OPTIONAL_SOAP_ADDRESS in the header with a new endpoint. Note that the service provided by the alternate endpoint must have exactly the same input and output requirements.

  1. In an Assign system function or an Assignment in a general step before the Invoke step, enter any temporary name for the assignment, then open the Expression Builder.
  2. In the Expression builder, you edit the header as follows to make it a valid string expression:
    1. Cut (to the clipboard) the name (in this example F_EndPointRefInvAuth1) from the beginning of the message. We will paste it as the name of the assignment.
    2. Replace OPTIONAL_FINAL_SOAP_ADDRESS with the new endpoint string (no quotes), or insert a previously defined variable with the value using double-quotes and pluses as appropriate.
    3. Add double quotation marks (") to each existing double quotation mark, and at the beginning and end of the message.
  3. Close the Expression Builder, then paste the name of the endpoint reference (in this example, F_EndPointRefInvAuth1) into the Name field of the assignment.


Last updated: March 2016
bpfe011.htm

© Copyright IBM Corporation 2016.