Problem – Describing a Temporal Aggregate Property of an Entity
The historical state or performance of an entity may reveal trends. Once identified, these trends may be used to take corrective actions. Performance requirements are often stated in terms of such aggregate properties.
Historical trends of an entity can be expressed though definitions of a temporal aggregate type (e.g. rates or counts). The history of the entity is considered a collection of prior states. A derived meta-attribute may then be defined at the collection level that aggregates one or more attributes of the collection over a specified period of time. The type of aggregate function and a threshold are defined in order to detect a condition in which action should be taken.
Example – Pension Estimate A company policy restricts an employee to a maximum of four requests for pension estimates in a calendar year.
|Unit of measure||pension estimate requests|
A franchiser requires that a dealer must maintain an average monthly sales volume of over $20,000. If the average for any three-month period drops below $20,000, the dealer is placed on probation.
|Unit of measure||sales volume|
The Temporal Aggregation business rule pattern is modeled in the UML as a derived attribute of a model element that contains a collection of its own states. It shares an affinity with the Aggregation business rule pattern in this respect.