Create the metadata XML file containing definitions of all the custom events.

Developing Event Handlers for Extending User Management Operations 8-9 class=oracle.oim.extensions.postprocess.SamplePostprocessExtension entity-type=User operation=MODIFY name=SamplePostprocessExtension stage=postprocess order=1000 sync=TRUE -- Custom validation event handlers -- validation-handler class=oracle.oim.extensions.validation.SampleValidationExtension entity-type=User operation=CREATE name=SampleValidationExtension order=1000 validation-handler class=oracle.oim.extensions.validation.SampleValidationExtension entity-type=User operation=MODIFY name=SampleValidationExtension order=1000 eventhandlers 2. Import these event definitions into MDS. See Chapter 33, MDS Utilities and User Modifiable Metadata Files for more information. For a shiphome-based install the scripts necessary to import the event definitions are located in the following directory: OIM_HOMEcommonwlst

8.3 Troubleshooting an Event Handler

The following list contains information to help troubleshoot your event handler if it appears not to start. Common causes of this might be: ■ EventHandlers.xml has a syntax error. ■ EventHandlers.xml was imported into the wrong place in MDS. It must be in a top-level directory recognized by Oracle Identity Manager; for example, db, file or custom. mystufffor example and the root directory are not recognized. ■ A preprocess event handler has been implemented using reconciliation. Preprocess event handlers do not start on reconciliation. ■ A preprocess event handler has been implemented using reconciliation but not bulk orchestration execute. Both bulk and non-bulk methods must be implemented to work with reconciliation. Note: You need not define all the custom event definitions in the same file. They could be split across multiple new event definition files or they could be added to any existing event definition file. Exporting the desired event definition file, modifying it, and importing it back implements the latter. For information about exporting and importing event definition files, see Chapter 33, MDS Utilities and User Modifiable Metadata Files . 8-10 Oracle Fusion Middleware Developers Guide for Oracle Identity Manager