Modify a lifecycle action

If you modify a lifecycle action handler, you must update the Content Engine with your modified handler. How you do this depends on whether the handler is referenced in the JVM classpath 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 classpath

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.
    2. Select Properties from the context menu.
    3. Select the Properties tab.
    4. 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 select Copy Object Reference from the context menu.
  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 > Document Lifecycles > Document Lifecycle Actions.
    2. Right-click the event action that references the updated code module and select Properties from the context menu.
    3. Select the Properties tab.
    4. Select the All Properties radio button and scroll to the Code Module property at the bottom of the dialog box.
    5. Right-click the Code Module property's Property Value field and select Paste Object from the context menu.
    6. In the Select Object from Paste Buffer dialog box, select the latest version object reference and click OK.
    7. In the Properties dialog box, click Apply, then click OK.