.. include:: /Includes.rst.txt .. _task-1791628540: ============================================================ Task: Modules announce changes as messages of their contract ============================================================ Description =========== What the modules announce to each other after a change, such as an approved leave request or a person leaving, are messages of the module's contract: the classes live in ``\Contract\Message`` and travel on the bus ``message.bus``, published through ``MessagePublisher`` after the command's transaction committed. They were domain events in ``Domain\Event`` on the bus ``event.bus`` before. Impact ====== A package handling messages of adsum imports them from ``Contract\Message`` and registers its handlers with ``#[AsMessageHandler(bus: 'message.bus')]``. Messages still waiting in a queue under their old class names cannot be read after the update; let the workers empty the queues before updating. .. index:: Backend, package:adsum-core, package:adsum-attendance, package:adsum-leave, package:adsum-working-time, package:adsum-projects, package:adsum-reporting, package:adsum-assets, package:adsum-ldap