Table of Contents

Search

  1. Introduction
  2. Configuring Hub Console Tools
  3. Building the Data Model
  4. Configuring the Data Flow
  5. Executing Informatica MDM Hub Processes
  6. Configuring Application Access
  7. MDM Hub Properties
  8. Viewing Configuration Details
  9. Search with Solr
  10. Row-level Locking
  11. MDM Hub Logging
  12. Table Partitioning
  13. Collecting MDM Environment Information with the Product Usage Toolkit
  14. Glossary

Using Hard Delete Detection within User Exits

Using Hard Delete Detection within User Exits

You can implement the Post Landing and Post Stage user exits to detect hard deleted records in source systems. To perform a direct hard delete detection you need the Post Landing user exit. To perform a consensus hard delete detection you need both Post Landing and Post Stage user exits.
  1. Create an instance of the HardDeleteDetection class to use within the implementation of the Post Landing user exit.
    The HardDeleteDetection class is available in
    mdm-ue.jar
    , which is in the following directory:
    On Windows.
    <infamdm installation directory>\hub\server\lib
    On UNIX.
    <infamdm installation directory>/hub/server/lib
  2. Add the following lines to the Java code for the Post Landing or Post Stage user exits to detect hard deleted records:
    • For Post Landing user exit.
      public void processUserExit(UserExitContext userExitContext, String stagingTableName, String landingTableName, String previousLandingTableName) throws Exception { HardDeleteDetection hdd = new HardDeleteDetection(userExitContext.getBatchJobRowid(), stagingTableName); hdd.startHardDeleteDetection(userExitContext.getDBConnection()); }
    • For Post Stage user exit.
      public void processUserExit(UserExitContext userExitContext, String stagingTableName, String landingTableName, String previousLandingTableName) throws Exception { ConsensusFlagUpdate consensusProcess = new ConsensusFlagUpdate(userExitContext.getBatchJobRowid(), stagingTableName); consensusProcess.startConsensusFlagUpdate(userExitContext.getDBConnection()); }
  3. Package the user exits JAR and upload it to the
    MDM Hub
    .
  4. Run the stage job.
    The
    MDM Hub
    supplies input parameter values to detect hard deletes when the stage job calls the user exit.

0 COMMENTS

We’d like to hear from you!