validate_messages

The validate messages map can be used to start the JVC, and can be found in <wtx_install_dir>/mt/jvc/maps/validate_messages.mms

This map can be incorporated directly into your workflow, or adapted to meet your needs. It can also be called from another map by using the RUN command. The map has one input and two output cards:
  • Input Card 1 - SWIFT message, which is defined as a blob type tree item.
  • Output Card 1 - Validator settings for defining pack version number (do not change in normal operation), and validator flags.
  • Output Card 2: ValidatorResults. This card is used to call the JVC by use of the JVCWrapper validate method. It uses parameters from Output Card 1 to collect the validation results.

Validator flags can be used to modify the behavior of the JVC. They are specified as a single six character string, and the position within the string determines which flag is being set. The meaning and usage of each flag is shown in the table.

Position Name Allowable Values Description
1 Preload Definitions 0 Load message definitions as needed (recommended).
1 Preload all message definitions.
2 Map Server Mode 0 Enforce normal CRLF checking (recommended).
1 Use <NL> as a line delimiter instead of <CR><LF>.
3 Network Rules 0 Do not enforce network rules.
1 Enforce network rules.
2 Check jvalnnn.prop to determine if network rules enforced.
4 Check Methods 0 Do not enforce field-level rules.
1 Enforce field-level rules.
2 Check metadata file to determine if field-level rules enforced.
5 BIC Validation 0 Do not enforce BIC validation.
1 Enforce BIC validation.
2 Check jvalnnn.prop to determine if BIC validation enforced.
6 Market Practice 0 Enforce market practice rules.
1 Do not enforce market practice rules.
2 Check jvalnnn.prop to determine if market practice rules enforced.
7 FileActMode 0 FileActMode is false.
1 FileActMode is true.
2 Check jvalnnn.prop to determine FileActMode.
8 MessageLength 0 MessageLength check is disabled.
1 Message Length check is enabled.
2 Check jvalnnn.prop to determine MessageLength.

Use of a value of 0, or 1 for Network Rules, BIC Validation, and Market Practice Rules flags lets you to override the settings that are specified in jvalnnn.prop. This lets different maps, or map instances, in the same directory to use different validation criteria. For example, one map, or map instance, can enforce BIC validation, while another has BIC validation disabled.