How to run the example

This mx-mt translation will use the sample files to demonstrate the generation of SWIFT MT900 or MT910 message output from a CBPR+ camt.054.001.08 XML message.

The cbprJnodesConfigIBM.tar.gz file is available either in IBM_financialpaymentsplus_vn.n.n.n.zip or in UIProjectImports directory.

Extract from cbprJnodesConfigIBM.tar.gz file.
  • jnodes0.jar
The following jars needs to be copied from <TX_install_dir>/jars:
  • jackson-core-n.n.n.jar
  • jackson-annotations-n.n.n.jar
  • jackson-databind-n.n.n.jar

Or visit https://repo1.maven.org/maven2/com/fasterxml/jackson/core/ for download.

Note: Recommend using the latest version.
For the non Docker environments:
  • Copy jars to <TX_install_dir>/extjar.

For TX V11.0.0 and up, native based Design Server installation,

Copy jars into the directory pointed to the config.yaml server.persisitence.files, by default, this is set to /opt/txlibs, then restart the running application ./ITX stop and then ./ITX start

For the Docker environments
  • Docker cp jnodes0.jar tx-server:/opt/ibm/wsdtx/libs/.
  • Restart the design server, i.e., docker restart tx-server.
  1. Import the cbpr_translation.zip project into the Design Server.
  2. Open the cbpr_translation project in Design Server and build the following maps:
    • cbpr2510_camt054_framework
    • cbpr2501_mxmt_setvarlog
    • cbpr2512_camt054_translate
    • cbpr2513_camt054_mt900
    • cbpr2514_camt054_mt910
  3. Run the main map cbpr2510_camt054_framework.
    The following output files will be generated:
    • mt_out.txt

      File contains the translated MT900 or MT910 SWIFT message from CBPR+ camt_054 message based on the <CdtDbtInd> which could be CRDT (will generate MT910) or DBIT (will generate MT900).

    • audit_msg.json

      Reports translation logs, including failure due to the pre-conversion checks as:

      Either <CdtDbtInd> is not one of these ("CRDT","DBIT") or <Sts><Cd> is not "BOOK".
          TotalNumberOfDigits <Ntry><Amt> less than or equal to 14 
      	Only one occurence is allowed for <Ntfctn>, <Ntry>, <NtryDtls> and <TxDtls>.
      	Either one must exist <Ntfctn><Ntry><ValDt>  or <Ntfctn><Ntry><NtryDtls><TxDtls><RltdDts><IntrBkSttlmDt>.