Developing and implementing extension points
An extension point is a point in the application where custom code can be started, such as entry preview script, post save script, and validation rule script. You can either use Java™ API or IBM® Product Master scripting language to develop the extension point code. Extension points are the various points within Product Master where you can modify the behavior by running some user-defined business logic.
About this task
To implement the extension points through the Java API, you need to implement a set of predefined interfaces, which are supplied with Product Master. More than 20 extension point interfaces are included with Product Master.
In Product Master, Java enabled extension points are started through a redirection script that appears as a script to Product Master, but points at implementation in Java. Each Java enabled extension point is represented by a unique interface within the Java API. For example, a custom tool implementation must implement the CustomToolsFunction interface. Methods on these interfaces accept specific arguments to determine what data is passed to the extension points.
For developing extension points through the script workbench, see Developing scripts and extension points with the script workbench.
Procedure
Following are the steps to be used when you develop Java API-based extension points:
- Develop an extension point implementation class.
- Make the extension point class available to Product Master.
- Provide a URL for invocation of extension points by the Product Master.