IBM FileNet P8, Version 5.2.1            

Creating a code module

You can create a code module to contain one or more action handlers.

Procedure

To create a code module:

  1. Start the new document wizard in the administration console:
    1. In the domain navigation pane, click the object store.
    2. In the object store navigation pane, right-click the Browse > Root Folder > CodeModules folder and click New Document.
  2. On the Define New Document Objects step in the new document wizard, select Code Module for the Class field.
  3. Select the With content check box.
  4. On the Document Content Source step, click Add to add the code module document as a content element. For example, you might add a code module document that is named JavaEventHandler.class as a content element.
  5. Set the MIME type for the content element:
    1. Select the content element.
    2. Click Change MIME Type. For information about the required MIME types, see MIME type for a code module element.
  6. Create an event handler for the code module:
    1. In the object store navigation pane, right-click Events, Actions, Processes > Event Actions and click New Event Action.
    2. In the Specify the Type of Event Action step, specify the Type in the following way:
      • Click Class.
      • Enter JavaEventHandler for the Java class handler field.
      • Select the Configure code module check box.
    3. In the Specify the Code Module and Associated Content Elements step, click Load Existing.
    4. In the Add a Code Module window, select your code module document and click OK.
    5. In the Content elements lists, verify that you see the source file for the code module.
    6. Complete the wizard.


Last updated: March 2016
p8pcc048.htm

© Copyright IBM Corporation 2017.