Run Trusted Pair API

Follow these steps to run the trusted pair API service.

  1. Configure the Trusted pair API using the Trusted Pair configurator:
    1. Login to APP Server and navigate to $FIC_HOME/database/db_tools/
    2. Open log4j2.xml file with a notepad and update the String from @ORION_DB_DBTOOLS_PATH@ to {FIC Home Path}/database/db_tools

      Note:

      {FIC Home Path} should be replaced with the exact FIC Home path (For example: /scratch/ofsaaapp/BDECM812/BDECM812)
    3. Login to APP Server and navigate to $FIC_HOME/database/db_tools/bin (For example, cd $FIC_HOME/database/db_tools/bin)
    4. Execute tp_configurator.sh (Step: ./tp_configurator.sh )
    5. Provide the URL, Username and Password of the Trusted Pair REST Service as received from AML Case Management System. This will update the trusted pair configuration file, tpconfig.xml (Located at $FIC_HOME/database/db_tools/mantas_cfg/ in APP Server)
    6. The Trusted Pair API provides the option to filter by Business domain(s). The tpconfig.xml can be configured by updating the tag <Domain> with Business domain(s). When configured, only filtered data as per specified Business Domain(s) will flow into Behavior Detection Trusted pair Tables (kdd_trusted_pair, kdd_trusted_pair_mbr) from AML Case Management System.
      • <Domain>d</Domain> for single domain
      • <Domain>d,a</Domain> for multiple domains

      Note:

      Multiple domains should be comma delimited.
    7. The Trusted Pair API provides the option to filter according to Jurisdiction. The tpconfig.xml can be configured by updating the tag <Jurisdiction> with Jurisdiction(s). When configured only filtered data as per specified Jurisdiction(s) will flow into Behavior Detection Trusted pair Tables (kdd_trusted_pair, kdd_trusted_pair_mbr) from the AML Case Management System.
      • <Jurisdiction>AMEA</Jurisdiction> for single Jurisdiction,
      • <Jurisdiction>AMEA,IN</Jurisdiction> for multiple Jurisdictions

      Note:

      Multiple Jurisdictions should be comma delimited.
  2. After configuring the Trusted Pair API, navigate to $FIC_HOME/database/db_tools/bin directory of APP Server and Execute tp_dataload.sh.
    For example,
    1. cd $FIC_HOME/database/db_tools/bin
    2. ./tp_dataload.sh
    On successful execution, the console will display the message "Job Completed Successfully…" and return code will be 0 in $FIC_HOME/database/db_tools/logs/trustedpair.log file. The Trusted Pair information will flow from AML Case Management System to Behavior Detection data base tables (kdd_trusted_pair, kdd_trusted_pair_mbr).
    If any error occurs during execution of tp_dataload.sh, the status code will be -1 in the $FIC_HOME/ database/db_tools/logs/trustedpair.log file.
    Each trusted pair record received from REST Service, with status codes such as Approved and Expired (Example, TPAPP, TPEXP) will get stored as AC, IAC respectively in the Behavior Detection Trusted pair table.