liveBook · Manning

Pattern signature

As explained in Event Processing in Action

A specification of a pattern that includes its pattern type, relevant event types, and, optionally, parameters and policies.

A pattern signature specifies the pattern being sought: its pattern type, relevant event types, and, when needed, parameters and policies. The type determines the matching function; event types filter incoming events, and their order matters for some pattern types. Parameters provide additional values that vary by type. section 9.1.2

In a Pattern detect agent, the signature tells the matching step which detection process to perform on participant events after relevance filtering. section 9.1.1

Pattern-type examples

Sequence, absence, and moving north are examples of pattern types; each determines the pattern’s meaning and matching function. section 9.1.2

Table 9.1. Event pattern reference table

Category

Pattern

Pattern parameters

Matching set

Basic all Pattern assertion (optional) One event for each type in the participant set
  any   One matching event
  absence   Empty
Threshold count Relation, Threshold value Entire participant event set
  value max Attribute, Relation, Threshold value Entire participant event set
  value min Attribute, Relation, Threshold value Entire participant event set
  value average Attribute, Relation, Threshold value Entire participant event set
  functor Function, Relation, Threshold value Entire participant event set
Subset Selection relative n lowest values Attribute, Count (value of n) n (or fewer) events with the lowest values for the given attribute
  relative n highest values Attribute, Count (value of n) n (or fewer) events with the highest values for the given attribute
Modal always Always assertion Entire participant event set
  sometimes Sometimes assertion Entire participant event set
Temporal sequence Pattern assertion (optional) One event for each type in the participant set
  first n Count (value of n) The first n (or fewer) events
  last n Count (value of n) The last n (or fewer) events
  increasing Attribute Entire participant event set
  decreasing Attribute Entire participant event set
  stable Attribute Entire participant event set
  non-increasing Attribute Entire participant event set
  non-decreasing Attribute Entire participant event set
  mixed Attribute Entire participant event set
Spatial min distance Location attribute, Spatial entity, Relation, Threshold value Entire participant event set
  max distance Location attribute, Spatial entity, Relation, Threshold value Entire participant event set
  average distance Location attribute, Spatial entity, Relation, Threshold value Entire participant event set
  relative min distance Location attribute, Relation, Threshold value Entire participant event set
  relative max distance Location attribute, Relation, Threshold value Entire participant event set
  relative average distance Location attribute, Relation, Threshold value Entire participant event set
Spatiotemporal moving in a constant direction Location attribute, Direction Entire participant event set
  moving in a mixed direction Location attribute Entire participant event set
  stationary Location attribute Entire participant event set
  moving toward Location attribute, Spatial entity Entire participant event set

Compare pattern categories, parameters, and the matching sets they specify. section 9.1.2

How Event Processing in Action covers it

How deep it goes
Defines signature components and their roles, while leaving type-specific parameters and matching behavior to individual pattern definitions.
Examples
Uses sequence, absence, and moving north as example pattern types.
What you can do after
Understand how a signature specifies pattern matching through its type, relevant event types, and optional parameters or policies.
How it connects
Connects pattern signatures to pattern types, relevant event types, pattern parameters, pattern policies, and the Pattern detect agent.

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.