Skip to main content

Event Data

A practical guide to how traceability events are built: the five event types, key fields like eventTime and bizStep, and why events can't be changed once submitted.

John Heggelund
Updated by John Heggelund

Event data and master data are core concepts of traceability. The frameworks described in this knowledge base build on top of the EPCIS 2.0 definitions for these concepts.

Event data describes things that happen to product instances at specific moments in time. An example might include, "At 1:23 pm on 15 March 2004, Product A was shipped to Location B." Master data gives context to the event data by providing details about product A and Location B.

Product A:

  • Name: 12oz Rib Eye Steak
  • GTIN: urn:epc:idpat:sgtin:0614141.112345

Location B:

  • Name: Beef Distributor Warehouse B
  • Street Address: 123, Warehouse B, Houston, Texas, 77065
Event data grows in quantity as more business is transacted and refers to things that happen at specific moments in time. (EPCIS 2.0)

Understanding Events

Event data is composed of individual events.

An event is:

  1. A record that associates EPCs with a moment in time (eventTime).
  2. Structured based on one of the five canonical Event Types
    1. ObjectEvent
    2. AggregationEvent
    3. AssociationEvent
    4. TransformationEvent
    5. TransactionEvent
  3. Immutable after successful submission, ensuring integrity and an audit trail.

Event Data serves as the primary data source for answering three classes of visibility queries:

  1. Where is it?
  2. What is its history?
  3. What happened to it?

Event Structure and Composition

Core Composition of a Traceability Event

Component

Nomenclature

Data Type / Nature

Purpose within Event Data

Event Type

ObjectEvent, AggregationEvent, etc.

Qualified Name (URI)

Determines the schema and the nature of the captured action. It is the structure classifier.

Event Fields

eventTime, bizLocation, bizStep, epcList

Primitive Types (xs:dateTime, URIs, Lists), URI (gs1:EventID)

Named fields that populate the contextual details (When, Where, Why, Who/What).

Event Identifier

eventID

URI (gs1:EventID)

A cryptographically strong identifier to track the individual event. Vital for deduplication and referencing.

User Extensions

N/A

User-defined Types (Custom Namespace)

Allows proprietary, business-specific data to be encapsulated within the event without violating core EPCIS interoperability.

Event Data vs Master Data

The separation between Event Data and Master Data is architecturally central to EPCIS and is based on three key vectors: Time, Content, and Mutability.

Technical and Functional Differentiation

Characteristic

Event Data (Transaction Facts)

Master Data (Reference Data)

Temporal Volatility

High: Capture of point-in-time events, resulting in high record volume. - Example: Recording 300 ObjectEvents in a single day, each with a unique eventTime, such as: "eventTime": "2025-11-25T14:00:00Z".

Low: Descriptive attribute that changes slowly or rarely. - Example: The name or description of the product (GTIN) associated with those 300 events might have only been updated once in the last year.

Mutability (Design Principle)

Immutable (Append-only): Event Data is a historical record. Corrections require submitting a new voiding/replacing event. - Example: If the bizStep was incorrectly logged as receiving instead of shipping, the original event persists. A subsequent ObjectEvent must be submitted with the isA: "EPCIS-Event-Correction" tag and a reference to the erroneous event.

Mutable: Can be updated (e.g., change in a bizLocation´s address). Updates impact the interpretation of all historical events referencing them. - Example: If the physical address of a bizLocation is updated in the Master Data today, all historical events (Event Data) referencing that SGLN immediately gain the new address as their location context.

Semantic Function

Occurrence (What Happened): Answers questions about an item´s history and temporal position. - Example: Event Data states: "EPC 'X' transitioned disposition to 'damaged' on day 'T'". (A semantic of fact).

Context (What It Is): Provides the description of the entities (EPC, Location, Partner) involved in the event. - Example: Master Data states: "'damaged' means 'unsaleable product, awaiting disposal', as per internal policy." (The definition and context of that fact).

Identifier Usage

Usage Source: Contains resolvable references (URIs) to entities. - Example: The bizLocation field contains the URI: urn:epc:id:sgln:0012345.54321.0.

Definition Source: Defines and stores the attribute associated with those identifiers. - Example: The Master Data system stores: 0012345.54321.0 (ID) possesses the attributes "Name: Lisbon", "Address: 123, XYZ Street", "Lat/Lon: -25.44, -49.27".

  1. Master Data: the reference data that gives events their context.
  2. Identifiers: the keys that go in epcList and bizLocation.
  3. Event-Based Traceability: CTEs and KDEs, the method events implement.
  4. GTF Requirements Specification: the bizStep and data-exchange requirements of the framework.

How did we do?

GS1 Standards for the Global Traceability Framework: Technical Application

Traceability Key Terms