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
- 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.
- Select Properties from the context menu.
- 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 select Copy Object Reference from the context menu.
- 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 select Properties
from the context menu.
- Select the Properties tab.
- Select the All Properties radio button and scroll to the Code Module property at the bottom of the dialog box.
- Right-click the Code Module property's Property Value field and select
Paste Object from the context menu.
- In the Select Object from Paste Buffer dialog box, select the latest version object reference and click OK.
- In the Properties dialog box, click Apply, then click OK.