You can create two types of Gateway event providers:
- Polling type event provider
A polling type event provider communicates with the event source to obtain the events when they happen. For example, a P6 event mechanism, where events are generated and sent to a JMS queue. To work with this, a P6 polling type event provider would have to implement the poll method. When the poll method is called at regular intervals by the Gateway integration broker, the JMS queue is polled to retrieve any available events.
- Receiving type event provider
For the receiving type event provider, code must be written on the application side to send the event to Primavera Gateway through Gateway restful APIs. This type of event provider will not go and retrieve the events from the event source. It only receives the events that are passed by the Gateway integration broker, and processes them accordingly.
Note: The P6 event provider delivered in Gateway is a polling type as well as a receiving type event provider.