Modify an action

If you modify an action handler (event action handler, lifecycle action handler, or document classifier), you must update the Content Engine with your modified handler. How you do this depends on whether the handler is referenced in the JVM class path of the application server where the Content Engine is running, or whether the handler is contained within a code module stored on the Content Engine.

NOTE  Code modules are versioned documents. If you modify a Java™ action handler contained within a code module and check it in as a new version, you must also update any event actions that reference the code module (so that they use the new version of the code module).

To update an action handler that is referenced in the JVM class path

To update a code module and action

  1. Check out the code module, making note of its mime type. The mime type can be found as follows:
    1. Right-click the code module and click Properties.
    2. Select the Properties tab.
    3. Note the Mime Type property value.
  2. Modify the Java action handler source and compile it.
  3. Check in the new version of the code module. Ensure that the mime type of the new version of the code module is the same as that of the previous version; otherwise, the event action will not work with the new version of the code module.
  4. Right-click the code module and click Copy Object Reference.
  5. Do the following steps for each event action that references the code module.
    1. In the tree view, expand Object Stores > object store name, and then navigate to the folder where the event action resides. For example:
      • Document Classification Actions
      • Document Lifecycles > Document Lifecycle Actions
      • Events > Event Actions
    2. Right-click the event action that references the updated code module and click Properties.
    3. Select the Properties tab.
    4. Select the All Properties radio button and scroll to the Code Module property at the bottom of the window.
    5. Right-click the Code Module property's Property Value field and click Paste Object.
    6. In the Select Object from Paste Buffer window, select the latest version object reference and click OK.
    7. In the Properties window, click Apply, then click OK.