Definition
An ECA rule condition is either a database query, a logical expression, or a call to a subprogram (function or method) executing arbitrary code returning true or false. If database queries are employed, then a nonempty set is equivalent to true, and an empty set is equivalent to false.
Key Points
A key issue of an ECA rule condition is that it ought to take parameters carried by the event triggering the rule that, in turn, evaluates the condition. The condition either returns a set (as a result of an SQL query) or a Boolean value (as a result of evaluation of the logical expression or the execution of the subprogram). An empty set is equal to false, and a nonempty set is equal to true. Another key issue is that results of the condition evaluation can be used to optimize rule action execution in many cases. Thus, there is a need to pass parameters from the condition evaluation to the rule action execution.
Cross-References
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsAuthor information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Section Editor information
Rights and permissions
Copyright information
© 2018 Springer Science+Business Media, LLC, part of Springer Nature
About this entry
Cite this entry
Berndtsson, M., Mellin, J. (2018). ECA Rule Condition. In: Liu, L., Özsu, M.T. (eds) Encyclopedia of Database Systems. Springer, New York, NY. https://doi.org/10.1007/978-1-4614-8265-9_517
Download citation
DOI: https://doi.org/10.1007/978-1-4614-8265-9_517
Published:
Publisher Name: Springer, New York, NY
Print ISBN: 978-1-4614-8266-6
Online ISBN: 978-1-4614-8265-9
eBook Packages: Computer ScienceReference Module Computer Science and Engineering