Skip to Main Content
Return to Navigation

Understanding Event Setup

To implement Event Manager into your application processing:

  1. Identify the business events that drive the execution of your business logic and, if necessary, define a new event.

    In many cases, the event is already defined in the local event registry that is accessible through the Event Registry component. If the event is not yet defined, you must define a new business event. To define a new event:

    1. Create an Application Package in PeopleTools Application Designer.

      This Application Package is a container for your Handler application classes. It needs to contain a sub-package named Handlers with individual application classes under it for each Handler you wish to register.

    2. Register the event to the Event Manager framework through the Event Registry component.

  2. Write the event handlers in PeopleTools Application Designer to execute the business logic that is specific to the event.

    To develop an event handler, create an Application Class with a method named ProcessEvent() that includes the Event Manager interface code that is provided in this topic. Event handlers can be for one or more business events.

  3. Register the event handlers to the event through the Event Registry component.

  4. Test your event and its registered event handlers.

    To test event handlers and events:

    1. Test the event handler in standalone mode through the Handler Tester component.

      Note: This test method does not require Integration Broker to be running.

    2. Test the event independent of the business process that raises the event through the Event Tester component.

      Note: This test method requires Integration Broker to be up and running.

    3. Test the event in the context of the business process by executing the business process that raises the event through the component or PeopleTools Application Engine process.

      The Event Manager framework automatically executes the registered event handlers for an event when you raise the business events.