摘要 |
A database rules engine for receiving and storing ECA expressions in columns of a database table. ECA expressions specify (I) an event structure that defines an event that corresponds with the event structure; (2) conditions for evaluation with respect to occurrences of events that correspond with the event structure; and (3) actions for performance in response to events satisfying one or more of the conditions. During evaluation of the rules with respect to one or more events, an event is detected based on the event's compliance with the specified event structure and the conditions are evaluated by determining whether the event satisfies any of the conditions. If the event satisfies a set of one or more conditions that have a corresponding action, then the corresponding action is performed by the database or the database causes the action to be performed outside of the database. |