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 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
- Restart the Content Engine in order to load the updated action handler.
To update a code module and action
- Check out the code module, making note of its mime type. The mime type can be found as follows:
- Right-click the code module and click Properties.
- Select the Properties tab.
- Note the Mime Type property value.
- Modify the Java action handler source and compile it.
- 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.
- Right-click the code module and click Copy Object Reference.
- Do the following steps for each event action that references the code module.
- In the tree view, expand Object Stores > object store name > Document Lifecycles > Document Lifecycle Actions.
- Right-click the event action that references the updated code module and click Properties.
- Select the Properties tab.
- Select the All Properties radio button and scroll to the Code Module property at the bottom of the window.
- Right-click the Code Module property's Property Value field and click
Paste Object.
- In the Select Object from Paste Buffer window, select the latest version object reference and click OK.
- In the Properties window, click Apply, then click OK.