Event (analysis pattern)

from Wikipedia, the free encyclopedia
Entity diagram of the event analysis pattern

Event is an analysis pattern by Martin Fowler , belongs there to the accounting patterns and describes an event that has occurred that is relevant for accounts. The consequences for the account (s) that result from this event are again described in the Pattern Accounting Entry .

example

  • A sale
  • A customer consumed 52 kWh of electricity
  • One employee was promoted

properties

One of the key properties is that the starting point of an event cannot be changed after it has been created. In the example of a credit card payment, this starting point would be “who paid what, when and where”.

The time stamps “When did it happen” and “When was it recorded” are of fundamental importance for the event . It is possible to work with just one or with multiple timestamps. However, it should be clearly described what time stamp stands for (time of receipt, processing time, etc.)

Changes to this starting point must be made using the reversal adjustment mechanism . This roughly corresponds to an offsetting entry, which also represents an event.

Usage

Events can be very useful for recording changes to a system. Every change requires a triggering event, which has all the necessary information. This makes it possible to reliably log changes in the system.

See also

Web links

  • Martin Fowler: Accounting Patterns. (PDF) pp. 11–14 , accessed on July 13, 2014 (English, description of the event analysis pattern).