Table of Contents

Search

  1. Preface
  2. Part 1: Introduction
  3. Part 2: Configuring Hub Console Tools
  4. Part 3: Building the Data Model
  5. Part 4: Configuring the Data Flow
  6. Part 5: Executing Informatica MDM Hub Processes
  7. Part 6: Configuring Application Access
  8. Appendix A: MDM Hub Properties
  9. Appendix B: Viewing Configuration Details
  10. Appendix C: Row-level Locking
  11. Appendix D: MDM Hub Logging
  12. Appendix E: Table Partitioning
  13. Appendix F: Collecting MDM Environment Information with the Product Usage Toolkit
  14. Appendix G: Glossary

User Exit Example

User Exit Example

Your organization needs to perform a fuzzy match on a record. You need to generate match tokens and store them in a match key table associated with the base object before you can perform a fuzzy match.
To generate match tokens you need to call the Tokenize API. You can configure a user exit that calls the Tokenize API to generate match tokens for the record on which you need to perform a fuzzy match.
The following sample user exit code uses a SIF client to call the Tokenize API to generate match tokens for a record:
private String ORS_ID = "orclmain-MDM_SAMPLE"; private UserExitSifClient sifClient; @Override public void processUserExit(UserExitContext arg0, ActionType arg1, Map<String, Object> arg2, Map<String, Object> arg3, List<Map<String, Object>> arg4) throws Exception { // Begin custom user exit code ... log.info("##### - Starting PostLoad User Exit"); // Get the ROWID_OBJECT value of the record that was loaded. String rowidObject = (String) arg3.get("ROWID_OBJECT"); // Initialize user exit SIF Client. sifClient = new UserExitSifClient(arg0.getDBConnection(), ORS_ID); // Tokenize the record that was loaded. TokenizeRequest r = new TokenizeRequest(); // Specify a user that should call the SIF API r.setUsername("userExitSifUser"); r.setOrsId(ORS_ID); // Specify the base object that must be tokenized. r.setSiperianObjectUid(SiperianObjectType.BASE_OBJECT.makeUid("C_PARTY")); // Specify the record that must be tokenized. RecordKey rkey=new RecordKey(); rkey.setRowid(rowidObject); r.setRecordKey(rkey); r.setActionType("UPDATE"); // Call Tokenize SIF API. TokenizeResponse response = (TokenizeResponse)sifClient.process(r); // Print out response message log.info("TokenizeReponse=" + response.getMessage()); // When making subsequent SIF API requests, SIF client can be reused. // It does not need to be initialized again. } // End processUserExit

0 COMMENTS

We’d like to hear from you!