Contextualization overview¶
In a business intelligence system, data analysis is usually performed using star schemas or constellation schemas, i.e. sets of star schemas. Each star schema is made up of a fact table and of the contexts associated with it. Note: In business intelligence jargon, every time we mention a context we are referring to a dimension.
A fact table contains analysis measures (numeric values that can be used to aggregate and calculate KPIs), while contexts contain attributes (text values that can be used to filter or group). In short, a context is the analysis context or dimension of a fact table.
Contexts are linked to fact tables based on data retrieved from sources either in the data warehouse directly or when smart views are created.
Contextualization is the system's ability to find relationships that are not directly available on the source system.
Contextualized data¶
To perform the contextualization, two categories of data must be provided by MES sources or Insights Hub OEE.
- Data that provides information on the relationships between entities (for example, an operation – OperationResponse – can let the system know the relationship between equipment, operation - OperationResponse - and order – OperationExecution).
- Data that has to be contextualized (for example the value of a counter – IndicatorValue).
The system provides the following functionalities to create analysis contexts:
- Automatic contexts (Context Manager) - at data warehouse level, by means of the extension of some OOTB entities or by adding new entities to the data warehouse, depending on the chosen mode.
- Smart view contextualization - at smart view level, when the smart view is configured. For smart views you can always add contexts that were not automatically added by the system using the "Manage Contexts" functionality and customizing the smart view loading scripts.
Concepts you need to know about Context Manager¶
The following concepts are considered prerequisites to understanding how to work with contextualization:
How the system manages contextualization¶
The concepts of equipment and instant or time period apply. These two pieces of information are used to understand how to associate information. The starting point is always a piece of equipment and an instant or a time period, everything that is valid at the same instant or time period and is related to the same machine is contextualized. Opcenter Intelligence is able to acquire simple measurements from machine (i.e. Good and Scrap counters).
OperationResponse entity (Data ingestion from MES sources)¶
When contexts are derived from data ingested from MES sources, the OperationResponse entity is of paramount importance for the contextualization of data (counters, speed, capacity and state) because it is the link between production MES data and machines. To contextualize data for a specific piece of equipment, the system searches for the OperationResponse linked to that piece of equipment in a specific time interval. From the OperationResponse, the following related entities are retrieved:
- Operation Execution
- Intermediate Material Definition
- Material Lot In
- Material Lot Out
- Tool
The information linked to the equipment in the OperationResponse can be found for some sources in the OperationResponse or in the OperationResponseEquipmentSpecification for other sources. In the case of a third-party source, either the first or the second entity is managed depending on the use case. A table shows the relationship between operation and equipment.
From the OperationExecution entity, the system retrieves information on the Final Material Definition entity related to the Operation Execution.
The Analytics entities¶
The Downtime Management and Downtime Analytics entities are similar from a “functionality” point of view, but are managed differently.
The Downtime Management entity is always available in the system if a data source provides the Downtime Management functionality and contains all the machine states converted into a fact table with only the original relationships: Site, Equipment, ReasonTreeItem and all the Time Definitions. By using this entity, you can calculate KPIs or visualize dashboards based only on these four dimensions.
To overcome this limitation, it is possible to use the Downtime Analytics entity, which is generated only when the Context Manager has been enabled during the project configuration.
While Downtime Management contains data and can be filtered with ReasonTreeItem and TimeDefinitions, Downtime Analytics adds some contextualization, which means that this component can add relationships in order to link machine states to other entities like orders (OperationExecution), work order operations (OperationResponse), materials (MaterialDefinition), material lots (MaterialLot), tools (Tool), work calendar (WorkCalendarInterval). To do so, equipment and time information are used to find a match, typically following the work operation path or getting the context provided by the shop floor. During the time span of a status some context (dimension), for example work operation or order, might change. The status is then split into two or more rows and the new duration is automatically calculated.
The same applies to Equipment Capacity and Capacity Analytics entities.
While for capacity and state you need to use the Analytics entities to perform an analysis based on contexts or to calculate a KPI, for counters (IndicatorValue) and tags (TagValue) you need to use the Equipment Performance entity. In this case there is only one table because the split of time intervals is not necessary.
In conclusion, if you need to filter KPIs or dashboards by production entities like orders, work operations, etc. you always have to use the Analytics entities.