Suscribing to an instance of an entity

K2BTools provides the possibility for a user to subscribe to events related to an instance of an entity. By doing this, the user will be notified each time an event related to this instance happens. As an example the user can subscribe to the product X and each time an event related to that product occurs, a notification will be sent to the user.

To allow users to subscribe to events related to an entity instance, follow these steps:

  1. Install the Notification and Collaboration module. To do this follow this link.
  2. Configure the transactions which supports subscription. To do this, the transactions must have the K2BEntityServices pattern applied. Go to the transaction node and set the “Allow Event Subscription” property to "True". Repeat this step in each transaction in which subscription should be allowed.
  3. Build the application.
To subscribe to an instance of an entity users must go to the Entity Manager. A subscription action will appear; the user can subscribe and unsubscribe to events using this action.

InstanceSubscriptionAction
Subscription action

When the user is subscribed to an instance of an entity, each time an event related to this instance occurs, the user will be notified.