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:
- iskeypresentbic
- swcheck_bic2
- update_bic_table
- getbicinbdf
- iskeypresentbicinbdf
Creating the database object
- In the FEX installation package, navigate to the required directory:
- Software\CF_IBAN\Database
- Software\BDF\Database
- This directory contains the database SQL scripts.
- Run the SQL scripts inside your database schema.
- These scripts create the following tables. These table are needed to support the financial repository used by the Custom-Functions.
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:
- Right-click the Axway Server object that represents Integrator.
- Select Channel from the context menu.
- Composer displays the Channel properties window.
- Complete the General tab:
View field descriptions
Name |
Enter a name for the Channel. For example: In_BIC |
Label |
Optionally enter a description |
Status |
You cannot directly change the status in this field.
|
Endpoints |
Terminus 1 |
From the drop-down list, select Partner. Then from the Instance field drop-down list, select the Partner object that represents the FTP server application. |
Terminus 2 |
From the drop-down list, select Axway Server. Then from the Instance field drop-down list, select the Axway Server object that represents the Integrator Server. |
Connection parameters |
Connection type |
Select TCP/FTP |
Connection point 1 |
Select the FTP CommAdapter (this is for the connection on the Integrator side) |
Connection point 2 |
Select the FTP CommAdapter (this is for the connection on the FTP Server side) |
- Select the Connection point 2 tab.
- In the Receiver or Sender field select Receiver.
- 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;
}
}
|
- Check, save and close the object.
- Send the Channel object to server.
- 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.
- In Composer, open the Topography workbench.
- In the Topography workbench open the Axway Server object that represents your Integrator Server instance.
- Composer displays the Axway Server properties window
- In the Axway Server properties window, select the Communication tab.
- In the Communication tab, add a TCP-type CommNetwork.
- Right-click the CommNetwork and, from the context menu, select Add a CommAdapter.
- Composer adds a CommAdapter node to the tree structure in the left pane, and displays the CommAdapter configuration fields in the right pane.
- In the right pane, complete the configuration fields:
- CommAdapter type: Select JDBC from the drop-down list
- Template: If you have created a template to configure this CommAdapter, you can optionally select the template from the drop-down box
- Check, save and close the Axway Server object.
Creating the JDBC Channel
- 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.
- Composer displays the Channel properties window.
- Complete the General tab:
View field descriptions
Name |
Enter a name for the Channel. For example: Update_BIC |
Label |
Optionally enter a description |
Status |
You cannot directly change the status in this field.
|
Endpoints |
Terminus 1 |
From the drop-down list, select Partner. Then from the Instance field drop-down list, select the Partner object that represents the JDBC database. |
Terminus 2 |
From the drop-down list, select Axway Server. Then from the Instance field drop-down list, select the Axway Server object that represents the Integrator Server. |
Connection parameters |
Connection type |
Select FTP/Oracle (or other database type) |
Connection point 1 |
Select the FTP CommAdapter |
Connection point 2 |
Select the JDBC CommAdapter (this is for the connection on the database side) |
- Check, save and close the object.
- Send the Channel object to server.
Creating the Integration-Process
This Integration-Process must make use of one of the following Java Custom-Functions:
- iskeypresentbic
- swcheck_bic2
- update_bic_table
- getbicinbdf
- iskeypresentbicinbdf
The Function Call may appear in any DML part of the Integration-Process:
- Business-Document CheckConstraints
- Steps of a DecisionPath of a Map-Broker
- Mapping Expression inside a Map-Broker
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
- Right-click the Integration-Task and click the Integration-Process.
- Complete the General tab:
View field descriptions
Name |
Give a name to the integration task |
Label |
Optionally enter a description |
Status |
You cannot directly change the status in this field.
|
Integration-Process |
Select the IP created |
Integrator Server |
Select the Integrator Server |
Sentinel |
Log all events |
- Click the Configuration tab.
- Select FTP channels for send and receive activity.
- For Custom-Functions, select the JDBC.
- Save the Integration-Task.
- 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