Installation and prerequisites > FEX Add-ons > Using Custom-Functions

Using Custom-Functions

Overview

Creating the database object

Creating the Integrator FTP input Channel

Creating the JDBC CommAdapter

Creating the JDBC Channel

Creating the Integration-Process

Creating an Integration-Task

Overview

This version of Axway Financial Exchange includes Java Custom-Functions for Integrator. These Custom-Functions are used inside the check constraints of each Business Document (SWIFT-FIN, SWIFT-XML, and so on).

This topic explains how to set up a link between a Java Custom-Function and the required database storage.

Only the following functions use such a database:

Creating the database object

  1. In the FEX installation package, navigate to the required directory:
  2. Software\CF_IBAN\Database
  3. Software\BDF\Database
  4. This directory contains the database SQL scripts.
  5. Run the SQL scripts inside your database schema.
  6. These scripts create the following tables. These table are needed to support the financial repository used by the Custom-Functions.
Table name Expected number of rows
BIC_IBAN (FI & BI) 90000 (maximum)
IBAN_IS (IS)

50 maximum

(depends upon the list of countries that apply IBAN coding)

Creating the Integrator FTP input Channel

In the Axway Composer Integration-Services workbench, Transport tab, Hierarchy sub-tab:

  1. Right-click the Axway Server object that represents Integrator.
  2. Select Channel from the context menu.
  3. Composer displays the Channel properties window.
  4. Complete the General tab:
  1. Select the Connection point 2 tab.
  2. In the Receiver or Sender field select Receiver.
  3. In the Receive script field, enter a receive script such as:

CD $CORE_DATA"/ftp/public/bic_iban";

-LIST "." INTO %F {

   -RECV %F;

   IF (%FTPSTATUS IN "200"-"299") {

      DELETE %F;

   }

}

  1. Check, save and close the object.
  2. Send the Channel object to server.
  3. Composer sets the object status to commit.

Creating the JDBC CommAdapter

If you have already created a JDBC CommAdapter that you want to use, this procedure is not necessary.

  1. In Composer, open the Topography workbench.
  2. In the Topography workbench open the Axway Server object that represents your Integrator Server instance.
  3. Composer displays the Axway Server properties window
  4. In the Axway Server properties window, select the Communication tab.
  5. In the Communication tab, add a TCP-type CommNetwork.
  6. Right-click the CommNetwork and, from the context menu, select Add a CommAdapter.
  7. Composer adds a CommAdapter node to the tree structure in the left pane, and displays the CommAdapter configuration fields in the right pane.
  8. In the right pane, complete the configuration fields:
  9. Check, save and close the Axway Server object.

Creating the JDBC Channel

  1. In the Composer Integration-Services workbench, Transport tab, Hierarchy sub-tab, right-click the Axway Server object that represents Integrator and then select Channel from the context menu.
  2. Composer displays the Channel properties window.
  3. Complete the General tab:
  1. Check, save and close the object.
  2. Send the Channel object to server.

Creating the Integration-Process

This Integration-Process must make use of one of the following Java Custom-Functions:

The Function Call may appear in any DML part of the Integration-Process:

They are most often used and found inside CheckConstraints delivered as part of the FEX libraries delivery.

You can import the sample Integration-Process ip_update_bic_table.xml delivered in the FEX installation package in the Software\BICUpdate directory. This Integration-Process enables you to update the BIC Repository.

Creating an Integration-Task

  1. Right-click the Integration-Task and click the Integration-Process.
  2. Complete the General tab:
  1. Click the Configuration tab.
  2. Select FTP channels for send and receive activity.
  3. For Custom-Functions, select the JDBC.
  4. Save the Integration-Task.
  5. Send the Integration-Task to server.

Related topics

Integrator Server add-ons

Importing Custom-Functions to Composer

Migration: Updating the Custom-Functions

Using the Banque de France Custom-Functions