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

Example Client-Based Custom Function

Example Client-Based Custom Function

The name of the client function class for the following sample code is com.siperian.mrm.customfunctions.test.TestFunction.
package com.siperian.mrm.customfunctions.test; import java.awt.Frame; import java.util.Properties; import javax.swing.Icon; import com.siperian.mrm.customfunctions.api.CustomFunction; public class TestFunctionClient implements CustomFunction {     public void executeClient(Properties properties, Frame frame, String username, String password, String orsId, String baseObjectRowid, String baseObjectUid, String packageRowid, String packageUid, String[] recordIds) {         System.err.println("Called custom test function on the client with the following parameters:");         System.err.println("Username/Password: '" + username + "'/'" + password + "'");         System.err.println(" ORS Database ID: '" + orsId + "'");         System.err.println("Base Object Rowid: '" + baseObjectRowid + "'");         System.err.println(" Base Object UID: '" + baseObjectUid + "'");         System.err.println(" Package Rowid: '" + packageRowid + "'");         System.err.println(" Package UID: '" + packageUid + "'");         System.err.println(" Record Ids: ");         for(int i = 0; i < recordIds.length; i++) {             System.err.println(" '"+recordIds[i]+"'");         }         System.err.println(" Properties: " + properties.toString());     }     public void executeServer(Properties properties, String username, String password, String orsId, String baseObjectRowid, String baseObjectUid, String packageRowid, String packageUid, String[] recordIds) {         System.err.println("This method will never be called because getExecutionType() returns CLIENT_FUNCTION");     }     public String getActionText() { return "Test Client"; }     public int getExecutionType() { return CLIENT_FUNCTION; }     public Icon getGuiIcon() { return null; } }

0 COMMENTS

We’d like to hear from you!