You want to allow employees at your company to be notified when inventory levels change. Because different individual look for different data, such as low inventory, high inventory, or significant inventory changes, you want to allow people to create their own conditions for their subscriptions.
In this sample, the subscribers Stephanie and David each create a subscription. Stephanie's subscription specifies that she wants to be notified when the final assembly inventory for product "Road-250 Black, 48" is 35 or fewer units. David's subscription specifies that he wants to be notified when the subassembly inventory for product "HL Crankarm" is 250 units or fewer.
Events are added to the system by an update trigger on the AdventureWorks Production.Inventory table. The trigger submits events to the Inventory Tracker application whenever inventory data is updated. At the end of the generator quantum in which the events arrive, the Inventory Tracker application fires the rules that match event data with subscription data and generate notifications.
Notifications are sent via e-mail to the subscribers.