-
Notifications
You must be signed in to change notification settings - Fork 27
Creating Events
theghostwhoforks edited this page Apr 12, 2013
·
5 revisions
An event is an entity that contains -
- UUID - To uniquely identify an event.
- Title - Human readable identity for the event.
- URI - The URI where the contents reference by the event is located.
- Timestamp - The time at which the event was created.
- Contents - The data encapsulated by the event as a String.
AtomFeed Server has an interface named EventService that exposes a method called notify that is used to publish events.
Events are meant to be published using the Event Service interface. Events can be published either by using the AtomFeed Server as a library as used by the OpenMRS Feed Publisher Module or by posting event data to a server via HTTP as demonstrated by the Notification Controller in the sample atomfeed-standalone application.