liveBook · Manning

Event interval context

As explained in Event Processing in Action

A context type whose window is defined by an initiator event and an expiration condition.

An event interval context groups events into a window opened by an initiator event. The window closes when a terminator event arrives, or when an expiration condition is met. section 7.2.2

Specify the conditions that control each window:

  • An initiator can be a specific event or an event type; an optional predicate can restrict which instances open the window. section 7.2.2
  • A terminator can likewise be specified by event type and optional predicate. A window may also close after a time limit or when it reaches a given size. section 7.2.2

Patient stay

A patient admittance event opens a window; a patient release event closes it. The window can therefore collect events associated with the stay between those two events. section 7.2.2

Unlike a sliding event interval, which opens and closes windows by counting events, an event interval uses specified start and end events or an expiration condition. section 7.2.2 section 7.2.4

How Event Processing in Action covers it

How deep it goes
Defines initiator and terminator lists, optional predicates, and time- or size-based closure conditions.
Examples
Uses patient admittance and release events to illustrate opening and closing a window.
What you can do after
Evaluate how initiator, terminator, and expiration conditions determine an event window.
How it connects
Connects event processing agents, event types, predicates, and windows.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Event Processing in Action. The section links point to the parts of the book it draws on.