Primavera Gateway includes a Sample event provider that you can use to get started. The Sample event provider contains the flows, and XML files, and sample Java code that uses best practices to help you get started.
The Sample event provider consists of a XML descriptor file and some Java code that implements Gateway event provider interface. Use the sample event provider as an example to write a Gateway event provider that satisfies your requirements. The sample event provider consists of:
- An XML descriptor file called SampleEventProvider.xml
The XML descriptor file is located in the SampleProvider/data/moredata folder.
- Two Java classes
- SampleEventProvider which implements EventProvider interface
- SampleEventLoader class which handles reading events out of a event XML file and marking the events processed
The two classes are included in the sampleprovider.jar.
For more details, see the chapter, Creating an Event Provider.