Script API

The Script API is similar to Java™ API. Script API operations extend the basic function of IBM® InfoSphere® Master Data Management Collaboration Server.

Important: As new functions are introduced into the product, a programming interface is applicable for some of these new functions. However, unlike the Java API support, there is no longer support for scripting APIs on these new functions. As a result, ensure that you move from scripting APIs to Java APIs.

With script operations you can clean, transform, validate, and calculate information to align with business rules and processes. This information can then be imported and exported to virtually any file standard and custom file format or used to complete mass updates to a catalog of information.

InfoSphere MDM Collaboration Server provides a library of scripting operations that you can view in the script sandbox. The script operations can be run either in the script sandbox or in a command prompt.

To access the script sandbox, click Data Model Manager > Scripting > Script Sandbox.

To use the command prompt, issue: $JAVA_RT com.ibm.ccd.common.interpreter.test.TestScript -scriptpath=your_script_path -companycode=your_company_name.

Script operations use the following prototype definition:

Return type - Object - Method - (Parameters)

The Script sandbox provides an Expression Builder section at the top of the editor. The Expression Builder provides the following fields:
Script Constants
The script constants are predefined by InfoSphere MDM Collaboration Server. They are true, false, " ", and null.
Script Implicit Variables
The script implicit variables are predefined by InfoSphere MDM Collaboration Server in some contexts. They are item, err, var, res, category, and feed_doc_path.
Script Operations
There are more than 1000 script operations.
Script Operators
The following script operators are supported: +, -, *, /, ==, !=, <, <=>, >=, &&, ||, !.