commanded v0.4.0 Commanded.ProcessManagers.ProcessManager behaviour

Macro and behaviour to define a process manager

Summary

Callbacks

Process manager instance handles the domain event

Is the process manager interested in the given command?

Types

domain_event :: struct
process_manager :: struct

Callbacks

handle(process_manager, domain_event)

Process manager instance handles the domain event

interested?(domain_event)

Specs

interested?(domain_event) ::
  {:start, uuid} |
  {:continue, uuid} |
  false

Is the process manager interested in the given command?