Skip to content
This repository has been archived by the owner on Jul 3, 2024. It is now read-only.
Robert Kranz edited this page Sep 9, 2013 · 1 revision

Events are the result of the invoking of a command on the domain.
They will be created, when a command passes validation. The domain server will publish them on a the event exchange, so the projections will be notified about the changing on the model.
Similar like commands, events are simple class including the ActiveEvent::EventType module and holding the needed attributes like this:

attributes :attr1, :attr2, :attr3, ...

Events should be created in the app/events directory.

Clone this wiki locally