Creating a change preprocessor action

Use the Change Preprocessor Action wizard to create a change preprocessor action. You can assign a change preprocessor action to a change preprocessor definition for a class.

Procedure

To create a change preprocessor action:

  1. Start the Change Preprocessor Action wizard in the administration console:
    1. In the domain navigation pane, select the object store.
    2. In the object store navigation pane, right-click the Events, Actions, Processes folder and click Change Preprocessor Actions.
  2. Specify a name for the change preprocessor action that you want to create.
  3. Select a class that is associated with the action.
    You can select either the parent class or a subclass that you created for the change preprocessor action.
  4. Optional: Specify the status of the change preprocessor action.
    You can disable the change preprocessor action until you are ready to implement it. By default, the change preprocessor action is enabled.
  5. Specify whether the action handler is implemented as a JavaScript or Java™ component.
    • If you select JavaScript, click Next to enter the action script. You can open and modify a script or add code to the default code stubs.
      Important: A change preprocessor action handler that is implemented as JavaScript can fail in some WebLogic configurations. To resolve the problem, see JavaScript action handler fails (WebLogic application server).
    • If you select Class, enter the name of the primary Java class for the change preprocessor action handler. If the Java class is contained in a package, qualify the Java class name with the package it is contained in.

      To configure the code module that contains the action handler, select Configure Code Module before you click Next. If you do not select this option, the required class or JAR file must be located on the local Content Platform Engine application server. In addition, it must be included in the application server class path.

      When you configure the code module, you can create a code module or browse for an existing code module. Code modules are stored in the CodeModules folder.

  6. Complete the wizard.

Enabling and disabling a change preprocessor action

You can enable or disable a change preprocessor action, which enables or disables the action everywhere it is used in the system.

Procedure

To enable or disable a change preprocessor action:

  1. In the administration console, navigate to Object Stores > object store name > Events, Actions, Processes > Change Preprocessor Actions.
  2. Select the change preprocessor action that you want to enable or disable and click the Properties tab.
  3. Locate the Is Enabled property and select the option to enable or disable the change preprocessor action.