MessagePostedEvent
EventType: MESSAGE_POSTEDDomain: collaboration Broker subject: progress.notification.message
Inserts a new message in a collaboration thread. The message is linked to a sender, a recipient (user or group key), and carries the text content.
Trigger
Triggered by: POST /event (universal event dispatcher)
Dispatched via POST /event in backend/api/endpoints/traceability.py with event_type: MESSAGE_POSTED.
Preconditions
- Sender and recipient keys are valid user identifiers
State Changes (Transaction)
Collections: Event, Issue, issue_rel, WorkOrder, Job, message
messagedocument inserted withsender,recipient,content,createdtimestamp
Side Effects (post_processing)
Publishes to progress.notification.message after commit.
InfoModel Fields
| Field | Type | Description |
|---|---|---|
sender | str | User key of the message sender |
recipient | str | Recipient key (user or group) |
content | str | Message text content |
message_key | str | None | Pre-assigned key for the message document |
Related Events
None.