Codes task
The Codes task loads different codes (such as Country and Currency) from Swift. The file lists various sets of codes related to payments, including currency codes and country codes.
There are two types of source files consumed by the codes task:
Full: Contains all the data known by Swift, usually a large file.Delta: Contains only the data that has changed since the last released delta file. This file is used to keep the data in FTM updated.
After the codes task is complete, a tactical activation message is sent to the Business Rules Server to reload the data. For more information about tactical activation, see Tactical activation.
Register the task
Use the task registry page in the Services Framework user interface. For more
information, see Register a task. The following table
shows the fields that are needed to register this task.
The following table shows the runtime characteristics that this task
supports.
This task can be run manually but no manual run configuration is available.
| Field | Description | Value | Example |
|---|---|---|---|
Task classname |
Enter the Java class name for the task. | com.ibm.fxh.swiftref.tasks.CodesTask |
|
Task name |
Enter a descriptive name for the task. | Customer specified. | Load the Swift codes into FTM |
Description |
Enter a detailed description about what the task does. | Customer specified. | Loads Swift codes such as country codes and currency codes. |
| Characteristic | Setting | Description |
|---|---|---|
| Manual Run | Allowed | This task can be run manually. |
| Scheduled Run | Allowed | This task be scheduled to run using the Services Framework timed interface. |
| Concurrent Run | Not Allowed | The task cannot run concurrently. |
Configure the task
Services Framework tasks need to be configured before they can be used. The following
list describes the configuration that the codes tasks need.
- Set the appropriate configuration parameters for the task. The parameters for this task are shown in the following tables.
- The file is delivered to a configured target directory. This directory is normally configured as the source directory for an outbound Gateway.
| Parameter | Description | Example |
|---|---|---|
Source directory |
The directory where the CODES file is to be delivered. Only one file must
exist in this folder during any given run. This task supports either CODES-ALL or
CODES-ISO files. Supported formats are TXT (.txt) and
XML (.xml). |
|
Error directory |
Store any codes files that fail during the loading process. | |
Processed directory |
Store completed codes files in this directory after the task completes successfully. | |
Structures to load |
Specify which structures from the codes file to load. At least one structure must be
configured. This task support the following structures:
|
When loading multiple structures, separate each structure with commas. Example: COUNTRY, CURRENCY |
File format |
Choose the format of the file to process. You can use one of the following:
|
The default value is XML. |
Information displayed during data loading
During various stages of data loading processing, the task displays the following information.
- Whether the task execution is a manual run or a regular scheduled run.
- Task execution messages that are appropriate for the stage of processing.
- Task error messages.
- The total number of records read from the source file.
- The total number of records that are inserted into the database.
- The total number of records that are updated in the database.
- The total number of records that are bypassed in the database.
- The total number of records that are deleted in the database.
- The total time taken by the task.