IBM BPM, V8.0.1, All platforms > Authoring services in Integration Designer > Services and service-related functions > Access external services with adapters > Configure and using adapters > IBM WebSphere Adapters > FTP > Configure the module for deployment > Configure the adapter for outbound processing

Passing the connection parameters dynamically

To pass the connection-related properties dynamically as part of the outbound request configure the connection specification class name and set the connection properties on the business graph.

  1. FTP adapter import interface, for example, FTPImport, must be created for the required outbound operations by running the external service wizard.

  2. The input data type for each of the outbound operation must be configured to use the business graph of the business object.

    For example, the input data type of the operations can be FTPFileBG or CustomerWrapperBG.

    The business graph implementation has a child business object, ‘properties' defined as an element in the business graph schema definition. The connection properties must be set in the dataobject ‘properties' of the business graph.

To pass the connection-related properties dynamically as part of the outbound request, follow this procedure.


Procedure

  1. Configure the ConnectionSpec class name in the FTP Import created.

    1. Right-click the FTP adapter import in the assembly diagram and select Show in > Properties view.

    2. In the Properties tab, select Binding > End-point Configuration.

    3. In the Connection Spec properties tab, select ConnectionSpec class name as com.ibm.j2ca.ftp.FTPFileConnectionSpec
  2. Set the Resource authentication field in Security Attributes to Application.

    1. Select Security Attributes from Binding properties.
    2. Set the Resource authentication property to Application from Advanced properties. The default value is Container.

    When the Resource Authentication property is set to Application, the Java EE component runs a programmatic sign-on to the FTP server. The application component passes security information, such as user name and password, through the ConnectionSpec instance.

  3. Set the Connection properties in the BusinessGraph within the properties child business object.

    For the adapter to accept the connection parameters dynamically during an outbound request, the application component must set the connection parameters on the business graph data object of the business object.

    The connection properties set on the business graph are prefixed as "CS" to identify them as ConnectionSpec properties.

    For example, you can set the user name and password to 'CSuserName' and 'CSpassword' in the properties element of the BusinessGraph to set the values of connection properties.

    The host name, protocol, or port number values are not accepted through the ConnectionSpec properties. The adapter accepts only authentication-related properties of the user, such as user name, password, and truststore, to be passed dynamically during an outbound request.


Results

The connection parameters are configured.


What to do next

Create an interface and a Java™ component, and then deploy the application onto the IBM BPM.

Configure the module for outbound processing


Previous topic: Authentication using connection specification properties


Related concepts:

Authentication using connection specification properties