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 inbound processing

Setting deployment and runtime properties

Specify deployment and runtime properties that the external service wizard uses to connect to the FTP server.

Before you can set the properties in this section, create your adapter module. It must be displayed in IBM Integration Designer below the adapter project. For more information about creating the adapter project, refer to Starting the external service wizard.

To set deployment and runtime properties, follow this procedure. For more information about the properties in this topic, refer to Activation specification properties.


Procedure

  1. In the Select the Processing Direction window, select Inbound and click Next.

  2. In the Deploy connector project field, specify whether to include the adapter files in the module. Choose one of the following options:

    • With module for use by single application

      With the adapter files embedded in the module, you can deploy the module to any application server. Use an embedded adapter when you have a single module using the adapter or when multiple modules need to run different versions of the adapter. By using an embedded adapter, you can upgrade the adapter in a single module without the risk of destabilizing other modules by changing their adapter version.

    • On server for use by multiple applications

      If you do not include the adapter files in a module, install them as a stand-alone adapter on each application server where you want to run the module. Use a stand-alone adapter when multiple modules can use the same version of the adapter and you want to administer the adapter in a central location. A stand-alone adapter can also reduce the resources required by running a single adapter instance for multiple modules.

  3. Define the following FTP system connection information for your module. For more information, refer to Activation specification properties.

    • Host name - Specifies the host name of the FTP server.
    • Remote directory - Specifies the directory on the FTP server, where the adapter polls and picks up files. If the Remote directory is set to <HOME_DIR>, the adapter polls for event files in the home directory.
    • Verify remote directory access permission - Specifies if the access permissions for the remote directory must be verified before performing the inbound operation.
    • Local directory - Specifies the directory on the adapter workstation where the event files are downloaded from the FTP server.
    • Protocol - Specifies the protocol used to connect to the FTP server. Following are the protocols that can be specified:

      • FTP - File Transfer Protocol
      • FTP over SSL - File Transfer Protocol over Secure Socket Layer
      • FTP over TLS - File Transfer Protocol over Transport Layer Security
      • SFTP - Secure shell File Transfer Protocol

    • Port number - Specifies the port number of the FTP server.

    Figure 1. Specify the Security and Configuration Properties window

  4. To filter the inbound event file by configuring rules, click Add or Edit in the Rule editor table. The rule constitutes three parameters, namely, Property type, Operator and Value.

    Figure 2. Adding or editing a rule

    1. Select any of the following metadata filtering property types from Property type list.

      • FileName
      • FileSize
      • LastModified

    2. Select the operator for the property type from the Operator list. Each of the property type metadata has its own operators.
      1. FileName contains the following operators:

        • Matches_File_Pattern (matches pattern)
        • Matches_RegExp (matches regular expression)

      2. FileSize metadata contains the following operators:

        • Greater than
        • Less than
        • Greater than or equal to
        • Less than or equal to
        • Equal to
        • Not equal to

      3. LastModified metadata contains the following operators:

        • Greater than
        • Less than
        • Greater than or equal to
        • Less than or equal to
        • Equal to
        • Not equal to

    3. Type the value for filtering the event file in the Value column.

      You must enter a valid Java™ regular expression in value for Matches_RegExp operator.

    To configure multiple rules, select END-OF-RULE option for each rule from the Property type list.

    The rules are grouped by using the logical OR operator, unless END-OF-RULE is selected in the property field. If an END-OF-RULE is selected between expressions (an expression can be a single rule or multiple rules grouped by an OR operator), it will be grouped using the logical AND operator.

    For example, If the rule A (FileName) is grouped with rule B (FileSize) using the logical OR operator, and on selecting the END-OF-RULE option, this expression will be grouped with another rule C (LastModified) using an AND operator. This can be represented as follows: ((A) OR (B)) AND (C)

    For more information see, Rule editor to filter files (ruleTable).

  5. Optional: Specify advanced properties by clicking Advanced. Expand each of the advanced sections to review the properties.

    • Event polling configuration
    • Event delivery configuration
    • Event persistence configuration

    • Additional configuration
    • FTP archiving configuration
    • Socks proxy server connection information
    • Secure configuration
    • Bidi properties

    • Logging and tracing properties

    The following sections describe the options that are available in the advanced property groups.

  6. Specify the required security credentials in the Service Properties area:

    • To use a J2C authentication alias, select the Using an existing JAAS alias (recommended) field, and specify the name of the alias in the J2C Authentication Data Entry field.

      You can specify an existing authentication alias or create one at any time before deploying the module. The name is case-sensitive and includes the node name.

    • To use activation specification properties, select the Using security properties from the activation specification field, and type the values in the User name and Password fields.

    • User name - Specifies the name of the user who has privileges to connect to the FTP server and perform FTP operations. See User name property (userName).
    • Password - Specifies the password of the user who has privileges to connect to the FTP server and perform FTP operations. See Password property (password).

    • To administer the user name and password from other mechanism, select Other.

  7. Select one of the options from the Function selector field. A function selector assigns incoming messages or requests to the correct operation on the service.

    • Function selector options

      For example, select Use a Function Selector configuration.

      If choosing to use this option, click Next.

    • Function selector

      If choosing this option:

      1. Click Select next to the Function Selector field.

        Figure 4. Specify the Security and Configuration Properties window

      2. In the Select Function Selector window, select the option, Use existing function selector from the list. A list of available function selectors is displayed. Select the function selector (this example uses FilenameFunctionSelector properties). Click Next.

        The EIS function name is not available in the external service wizard.

        If you want to specify a value other than the default that is generated by the adapter, you can edit it using the assembly editor.

  8. Click Finish in the New Function Selector Configuration window.

  9. Click Next in the Service Configuration Properties window.


Results

The external service wizard now has the information it needs to connect to the FTP server.


What to do next

If you have selected the Data format options as Use default data binding 'FTPFileBaseDataBinding' for all operations or Specify a data binding for each operation, click Next to continue to work in the wizard to select a data type for the module and to name the operation associated with the data type.

If you have selected the Data format options as Use a data binding configuration for all operations, proceed to Configure data binding and data handler.

Configure the module for inbound processing


Next topic: Selecting a data type and operation name


Related concepts:

User authentication

Known issues in editing the Rule Table

Inbound processing


Related reference:

Activation specification properties