Rule Engine is the core service that OneNET provides users for data transfer, which enables users to filter and distribute device messages in IoT Suite. In this way, users can customize data filtering rules, convert data formats, and forward data to follow-on products, thus obtaining more services.
Rule Engine supports processing and forwarding messages from a product in IoT Suite, and supports processing the following message sources:
Device data point message: new data points uploaded by device
Device lifecycle event: creation, deletion, online and offline event messages throughout device lifecycle
Device image properties update event: device image properties update event message (coming soon)
Rule Engine supports SQL statement-based custom processing rules for json data contents from selected message sources.
At present, the system message source inputs the rule engine according to the system fixed basic message format; users can define SQL editing based on the basic message format for the extraction and restructuring of json data; users can define SQL statement for message handling, as shown in the figure below:
Rule Engine supports forwarding customized messages to back-end services. Currently, the back-end services supported are as follows:
Message queue (MQ)
The high-performance and high-availability message middleware is conducive to the stable and efficient application service access to device messages.
Short Message Service (SMS)
Triggers a fixed template SMS containing user-defined parameters
Storage Service (coming soon)
Data storage service based on MySQL database