Go to Items

1. Definition 2. Functional Requirements 3. Syntax 4. Semantics

1 Definition

An Event is a Basic Event or a (possibly nested) combination of Events and Basic Events, with a Condition: the characters If followed by Time – a single Time, or a Time Expression with its recurrence rule – and a Persistence.

2 Functional Requirements

An Event describes what happens in an M-Instance, and is the form in which a Process, for instance an A-User, states a condition to be met. An Event:

  1. Contains a Basic Event, or a structure of Events and Basic Events, each defined as in Basic Event: one or two Action-Process Actions (APA) combined by a Logic Operator, possibly within a time window, or a Comparison of an Attribute with a Value.
  2. Has a Condition: If followed by a Simple Time or by a Time Expression of MPAI-OSD V1.5, whose recurrence rule expresses, for instance, “every day at 18:00”.
  3. Has a Persistence: Once (the Event holds the first time it is met), Every time (at every occurrence), or Until an Expiry (at every occurrence until then).
  4. When met, carries the Time at which it was met and the Bindings: for each Label of its Basic Events, the value that filled the labelled field (for instance who = the User that rang), so that what follows can refer to it.

3 Syntax

https://schemas.mpai.community/MMM4/V3.0/data/Event.json

4 Semantics

Label Description
Header Event Header – Standard “MMM-EVT-V3.0”.
MInstanceID Identifier of M-Instance.
EventID The ID of the Event.
MEnvironmentID Identifier of M-Environment.
EventTime The Time of the Event, as a Simple Time.
BasicEvent A Basic Event, as defined by Basic Event.
EventOrBasicEvent[] A (possibly nested) structure of Events and Basic Events.
Condition When the Event can hold.
– If The characters If.
– Time A single Time, as a Simple Time.
– TimeExpression A Time Expression of MPAI-OSD V1.5: an absolute Time, an interval, a relative Time or a schedule with its recurrence rule.
– Persistence How long the Event holds.
  – Kind One of “Once”, “Every time”, “Until”.
  – Expiry With “Until”: the Time after which the Event no longer holds.
Met The Event met.
– Time When the Event was met, as a Simple Time.
– Bindings[] The values that filled the labelled fields of the Basic Events.
  – Label The Label of the field.
  – Value The value that filled it (an identifier, a number, a string or a boolean).
  – Unit The unit of Value, when it is a measure.
DataExchangeMetadata Metadata optionally supporting regulated or controlled exchange of Interaction Potential Data, as defined by AIF V3.0.
DescrMetadata Descriptive metadata (maximum 2048 characters) supporting annotation, documentation, or indexing.

Go to Items