Multidomain MDM
- Multidomain MDM 10.4 HotFix 2
- All Products
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