1. A vending machine reports sales to the Nimbian M2M Integration Cloud, which monitors inventory levels in the data store. 2. When a product reaches a low level, the business rules engine raises an alarm to the business process engine. 3. The business process engine then executes the replenishment process by sending messages to the warehouse ERP system and transporter to restock.