WebSphere Message Brokers
File: tpeo_createcustevent
Writer: Kate Hostler

Task topic

This build: July 31, 2007 21:40:57

Creating a custom event project in PeopleTools

The adapter requires an event project in PeopleSoft in order to perform asynchronous inbound event processing. Use PeopleTools to create the custom event project.

If your environment requires inbound event support, you must use a custom event project in PeopleSoft. A sample event project, IBM_EVENT_V600, is provided with the adapter. You can modify and use and the sample project, or you can create your own project using PeopleTools. If you create your own project, make sure that you complete the steps below.
  1. Use PeopleTools Application Designer to create and name a new project.
  2. Create the fields for the new project as described in the following table:
    Field name Field description
    IBM_EVENT_ID Numeric value that will be retrieved from IBM_FETCH_ID record. This will be a unique ID for the event.
    IBM_OBJECT_NAME Name of the corresponding business graph.
    IBM_OBJECT_KEYS The get key property names in the Component Interface followed by the key values in name-value pairs. This will be used for the component’s retrieval from the EIS.
    IBM_EVENT_STATUS Will be set to 0 or to 99. If the event is ready to be polled, status will be set to 0 and the IBMPublishEvent function will be called. If the event is to be polled at a future date, status will be set to 99 and the IBMPublishFutureDatedEvent function will be called.
    IBM_OBJECT_VERB Verb that will be set on the business object graph containing the retrieved business object.
    IBM_EVENT_DTTM Date on which the event is created. For a future dated event, this is the effective date.
    IBM_NEXT_EVENT_ID Field that will have the latest event ID under the record IBM_FETCH_ ID. It will be incremented for each event added to the IBM_EVENT_TBL, and it will populate the IBM_EVENT_ID field within that table.
    IBM_XID The transaction ID needed to provide assured event delivery.
  3. Create a record named IBM_EVENT_TBL and add to it all the fields you have just created.
  4. Create a record named IBM_FETCH_ID and add to it only the IBM_NEXT_EVENT_ID field.
  5. Open the IBM_FETCH_ID record, select the IBM_NEXT_EVENT_ID field, view the PeopleCode, and select fieldformula.
  6. Copy the PeopleCode for custom event project, found under the Reference section of this documentation, to the project you are creating.
  7. Create a page under your project that contains the fields of the IBM_EVENT_TBL record at level 0. The page can have any name.
  8. Create a component under your project that contains the page you just created. The component can have any name.
  9. Create a Component Interface against this component and give it any name. Confirm that you want to default the properties based on the underlying component definition.
  10. Build the entire project, selecting all create options.
  11. Test and confirm that the Component Interface works, using the Component Interface tester.
  12. Generate the Java™ APIs for the Component Interface, and then add the generated classes to the adapter classpath. For complete information about building a PeopleTools project and testing the PeopleSoft Component Interface, refer to PeopleSoft documentation.
Notices | Trademarks | Downloads | Library | Support | Feedback

Copyright IBM Corporation 1999, 2007Copyright IBM Corporation 1999, 2007. All Rights Reserved.
This build: July 31, 2007 21:40:57

tpeo_createcustevent This topic's URL is: