workflow v0.2.0 API Reference
Modules
Implement this functions below to add a new data storage for your events and snapshots. The persistence modules will retreive a pure list of events, ready for replay, instead of dealing with localized messages. It’s an adapter responsability to filter and answer only the necessary data to be used inside Commanded
Genserver to hold Aggregates or Process Managers
Dispatch commands and events (messages) to aggregates and process managers
Interface with the Extreme EventStore driver to save and read to EVENTSTORE. Note that the Engine supervisor starts the driver naming it as ‘EventStore’
Map raw events to event data structs ready to be persisted to the event store
Database side effects from Aggregates and Process Managers servers. Having them in a segregated file helps to test, debug and share the uncommon code between them
Proxy API layer to provide a Facade for different data storages, with optimization logic, like snapshots, batch reading, etc… The ideia is to read from the config file what is the choosen storage, and route the call to the specifc implementation. http://elixir-lang.org/docs/stable/elixir/typespecs
Supervise zero, one or more containers