Parse SWIFT MX Activity

You can use the Parse SWIFT MX activity to validate a SWIFT MX message and parse it to XML format.

General

In the General tab, you can select the MX schema to parse the SWIFT MX message.

The following table lists the configurations in the General tab of the Parse SWIFT MX activity:

Field Module Property? Description
Name No Specify the name to be displayed as the label for the activity in the process.
SWIFT Specification Yes Click to select a Load SWIFT MX Schema shared resource.

If no matching Load SWIFT MX Schema shared resource is found, click Create Shared Resource to create one. For more details, see Creating a Load SWIFT MX Schema Shared Resource.

Schema No The following schemas are available in the Schema list:
  • MX Schema
  • All Schema
Transport Schema No Click to select the transport schema that you want to parse.
Note: This field is displayed when you select All Schema from the Schema list.
Element No Select a message type from the Element list.
Note: This field is displayed when you select All Schema from the Schema list. It provides a list of message element types after you select a transport schema in the Transport Schema field.
The following items are available in the Element list after you select an InterAct type transport schema:
  • ExchangeRequest
  • ExchangeResponse
  • HandleRequest
  • HandleResponse

Only the DataPDU item is available in the Element list after you select an SAA type transport schema.

AppHeader Schema No Click to select the AppHeader schema that you want to parse.
Note: This field is displayed when you select All Schema from the Schema list.
MX Schema No Click to select an MX schema which is loaded in the Load SWIFT MX Schema shared resource.
Select All Validations No Select this check box to enable all the validations.
Validate Transport Schema No Select this check box to enable message transport validation in SWIFT messages against the SWIFT transport schema.
Note: This field is displayed when you select All Schema from the Schema list.
Validate AppHeader Schema No Select this check box to enable message header validation in SWIFT messages against the SWIFT AppHeader schema.
Note: This field is displayed when you select All Schema from the Schema list.
Validate MX Schema No Select this check box to enable syntax validation in SWIFT messages against the SWIFT MX schema.
Validate MX Rules No Select this check box to enable validation for extended rules and business logic in SWIFT messages against the MX rules.
Validate BIC/BEI No Select this check box to validate the SWIFT message BIC/BEI codes against a BIC directory. SWIFT BIC and BEI codes are entity identifiers that are displayed in various subfields of the text block. Validating them takes a lot of time and memory, because data must be searched in a very large database.

At the initialization, an FI.dat BIC directory is provided to the validator, and then full BIC/BEI validation is performed against the provided directory. If no BIC directory is provided, the plug-in uses the default BIC file.

Note: Use the latest BIC file provided by SWIFT for up-to-date BIC or BEI validation.
Validate IBAN/BBAN No Select this check box to enable IBAN/BBAN validation in SWIFT messages against an IBAN/BBAN directory.
BANK Directory and IBAN Plus No Click and navigate to the location of the BANK directory and IBAN plus file. Select the file and click Open to load it.
Note: This field is available when you select the Validate IBAN/BBAN check box.
BIC Code File(FI.dat) Yes Click and navigate to the location of the BIC or BICPlus file. Select the file and click Open to load it.
Note: The BIC or BICPlus file is extremely large and, if specified, causes the increase of plug-in startup time. If this file is not specified, the default FI.dat file is used.
ISO3166 Country Code File(CT.dat) Yes Click to navigate to the location of the country code data file. Select the file and click Open to load it.
Note: The ISO3166 country codes are used if the file is specified here. Otherwise, an internal database of country codes is used.
ISO4217 Currency Code File(CU.dat) Yes Click to navigate to the location of the currency code data file. Select the file and click Open to load it.
Note: The ISO4217 currency codes are used if the file is specified here. Otherwise an internal database of currency codes is used.
Validation Filter File(ValidationFilter.xml) Yes Click to navigate to the location of the ValidationFilter.xml file. Select the file and click Open to load it.

See Using Validation Filters for more information about the validation filters feature.

Description

In the Description tab, you can enter a short description for the Parse SWIFT MX activity.

Input

The following table lists the input element in the Input tab of the Parse SWIFT MX activity:

Input Item Data Type Description
MXMessage String MX message in String format.

Output

In the Output tab, you can find the parse results.

The following table lists the output element in the Output tab of the Parse SWIFT MX activity:

Output Item Data Type Description
SWIFTMessage XML MX message in XML format.

The contents of the schema are determined by the SWIFT Message schema specified in the General tab.

Fault

In the Fault tab, you can find the error code and error message of the Parse SWIFT MX activity. See Error Codes for more detailed explanation of errors.

The following table lists the error schema elements in the Fault tab of the Parse SWIFT MX activity:

Error Schema Element Data Type Description
ValidationException String The MX messages have validation errors when the validation does not follow the selected SWIFT specification.
SwiftException String The activity cannot locate the metadata directory or it fails to initialize the metadata.