23. Notifications

The notification mechanism is partly built into the Perspectives Distributed Runtime, partly modelled in model:System.

  case ContextWithNotification
    thing Notifications (relational)
      property Message (String)
    user NotifiedUser
      perspective on Notifications
        action DeleteNotifications
          delete role Notifications

Add ContextWithNotification as an Aspect to a context that you model to receive notifications. It adds the role Notifications and the InPlace graphical user interface has a place to show them.

Actually, this place is visible only when you visit the context itself. Nevertheless, when a notification is generated, it will appear as a notification on screen, using the operating system notification mechanism.


1. If no authoring role is provided by the API caller, we take it to be the System User.