Registering the document store loaded class

A URL can be registered to start the extension point class in the document store.

About this task

If the class that implements the extension point is loaded into the document store, the format of the URL is:

japi:///</docstore folder>(:</docstore folder>):<class to use>
Where the </docstore folder> segments might repeat as required, and are terminated by the fully qualified class to use.

If the .class is loaded under a subfolder in the docstore, multiple </docstore folder> are specified in the URL. Product looks for the .class file in each of the specified folder in the order until it finds it.

For example,
//script_execution_mode=java_api="japi:///uploaded_java_classes/folder2/folder3:mdmpim.extend.myextensionpoints.ScriptingSandboxTestImpl.class"

Procedure

To start the scripting sandbox extension point implementation class that is developed before, proceed as follows:

  1. Click Data model manager > Script Sandbox.
  2. Provide the URL in the Script Pane field of the scripting sandbox extension point. Following is the invocation URL:
    //script_execution_mode=java_api="japi:///uploaded_java_classes:
    mdmpim.extend.myextensionpoints.ScriptingSandboxTestImpl.class"
    If the docstore is mounted on the file system, a URL similar to the following can be used to register the extension point:
    //script_execution_mode=java_api="japi:///public_html/
    mdmpim.extend.myextensionpoints.ScriptingSandboxTestImpl.class"
    Note: If you are syncing your custom JAR classes from your file system with the Product Master document store, ensure that you set the value of the enable_mountmgr=true and set up your designated file system directory setup. For more information, see Using file system as document store.