Event Handler
class EventHandler(val model: Model, val eventStore: EventStore, val objectStore: BusinessObjectStore)
Functions
Link copied to clipboard
Attempts to handle the given event by applying it to the BusinessObject to which it is targeted. If the event is successfully applied, the affected BusinessObjects are stored/updated in the BusinessObjectStore and the event is stored in the EventStore. If the event is not successfully applied, the event is not stored and the BusinessObjects are not updated.