Events & notifications are an important part of any full fledged IoT system. The “Events” feature offer the user the ability to define certain real world events related to the business or thing using a conditions driven logic builder and then trigger an action based on that event. An Event may occur either when data of an entity instance changes or when the entity instance data relative to some external data changes.
The “Notifications” feature allows the user to compose browser based push notifications to end users who have previously invoked a digital interaction and then explicitly opted in or subscribed to receive notifications about the thing. Combined, it enables the “thing” to communicate with the end users by pushing browser based notifications to their devices whenever the event defined occurs.
For example, we can have a Product Recall Event which would be detected by the value of the recall flag of a Product Batch instance changing from False to True.
Or we can have a Product Batch Expiration Event which would be detected by the expiration date of the Product Batch being less than the current date.
The first example is where the data of the entity instance has changed and can be detected when the data changes.
In the second example, the entity instance has not changed (expiration date remains the same). However, the expiration date relative to the current date has changed.