4. Defining data model Items
The purpose of the sheet Items is to define the Items, which includes their name, data type and if they are an Identifier, as well as their place in the data model hierarchy.
Note: The sequence of steps shown in this guide is a recommendation, as it felt the most natural for the author. But users are free to follow their own preferred sequence.
Items are the part of a data model which provides a meaning and context to a value and make it possible for users to understand what the recorded value means.
Users will define the names for these Items in the column labeled Item Name.
The users enters the name into the next empty cell in this column.
Important: Do not leave blank rows between entries or at the start. A blank row will be seen as the end of the configuration and the configurator will not process any entry past the blank row.
The configurator will verify the Item Name for invalid ASCII characters. To learn more about which ASCII characters are allowed, review the section Restrictions on ASCII characters allowed to be used. The configurator also validates the length of the string.
If an invalid character is found, a prompt is shown to the user.
Invalid characters are marked in red.
As spaces are not a visible character, they can't be marked in red, so the user can make use of the comment added to the cell as well.
To allow for the most efficient storage of the configuration as well as practicality when using an Item Name in a query, the maximum length of an Item Name can not exceed 50 characters.
If an Item Name is longer 50 characters, the user will be prompted.
Note: Names of Items which exceed the 50 character limit, will by default be trimmed to 50 characters if no action is taken by the user.
It is recommended to add for each hierarchy level, including hierarchy level 0 directly under the node name, two items to store the start end end time of the event. This allows Litmus Production Record Database to also calculate the duration of an event.
Litmus does recommended to use the values START_TIME for the start event and END_TIME for the end event, as these are the default values used by the functions
- PROREC_ProRec_GetProRecDataUTC
- PROREC_ProRec_GetProRecDataLocalTime
and would not have to be changed when using the functions. More about the use of these two functions can be reviewed in the chapters Reading Production Record Event Data with Local timestamp and Reading Production Record Event Data with UTC timestamp.
While a very common way of filling in spreadsheet style lists is to do it row by row, it has been observed that it can be beneficial to fill in all items first, especially if items are repeated throughout the data model hierarchy.
This can be achieved through the use of copy & paste cell content as well as make use of the MS Excel autocomplete feature, where it does try to recognize what the user may want to enter as a repeat.
Making use of these fast forms of duplication, can make it very quick to fill in all the names for the Items.
Filling in the example below was done in less than 1 minute.
Users are able to provide a description for an item to provide some context for colleagues about the purpose of the item and what it is used for.
The configurator will verify the Item Description for invalid ASCII characters. To learn more about which ASCII characters are allowed, review the section Restrictions on ASCII characters allowed to be used. The configurator also validates the length of the string.
If an invalid character is found, a prompt is shown to the user.
Invalid characters are marked in red.
To allow for the most efficient storage the maximum length of an Item Description can not exceed 256 characters.
If an Item Description is longer 256 characters, the user will be prompted.
Note: Descriptions for Items which exceed the 256 character limit, will by default be trimmed to 256 characters if no action is taken by the user.
To assign an item to its respective data model hierarchy level, users select a string representing the hierarchy level from the drop-down menu in the column labeled Node/Level.
This will add the selected string into the cell.
Note: Only values available through the drop-down menu can be selected.
The column with the labeled Node/Level will provide the user with a drop-down menu which shows the data model hierarchy levels as a string representation.
The first entry will always be a blank value.
This represents the hierarchy level 0 and is used for items placed directly under the node name.
This value will always be available, as each data model has by default a hierarchy level 0.
If users have added additional hierarchy levels, the drop-down menu will show them and their relations as a pipe symbol "|" separated string.
On how to add additional hierarchy levels, please review the chapters 2. Defining the Data Model Name and number of Hierarchy Levels and 3. Defining the Hierarchy Levels.
The string has to be read from the left, with the first value always being the name of a hierarchy level 1.
Any subsequent pipe symbol "|" separated value correlates to its respective hierarchy level.
- 2nd value = hierarchy level 2
- Example: Station_A|Right_Side
- 3rd value = hierarchy level 3
- Example: Station_A|Right_Side|Operation_1
- 4th value = hierarchy level 4
- Example: Station_A|Right_Side|Operation_1|Step_1
- 5th value = hierarchy level 5
- Example: Station_A|Right_Side|Operation_1|Step_1|Function_1
If the user first entered all the items in the column labeled Item Name in the right order of their hierarchy level, the process of filling in the column labeled Node/Level can be speed up making use of the different options MS Excel has for duplication of values across rows.
For example a users selects for the first item in a hierarchy level the string through the drop down menu.
Then they simply duplicate this value to all the other items in the same hierarchy level.
In the picture below, the user has copied the value of row 7 shown by the interrupted green cell border. And then selected rows 8-10.
The user then simply pasted the value into the selected rows.
A second option is to make use of the MS Excel autocomplete feature, where it does try to recognize what the user may want to enter as a repeat.
User can select an Engineering Unit for an Item. This can be used to provide some additional context when using the data recorded for a data model.
The solution provides a drop down with the most common engineering units used in the manufacturing industry.
Adding an engineering unit can be beneficial for organizations which operate across different locations like North America and Europa. Where the engineering unit provides the right context to the user and can help for example converting data between different unit systems to make sure, that users always compare "Apples with Apples".
Typically an engineering unit is most commonly used for numeric values.
In accordance with the EAV database model, values are stored in dedicated tables which store values of a specific data type.
Litmus Production Record Database supports four different data types.
Value Type String | What data are stored | Example |
---|---|---|
isNumber | numeric values both:
| 25 124.14 |
isString | alphanumerical values | SAP2023051001 |
isTime | date and time value | 2023-05-10 13:58:24.122 |
isBoolean | boolean values | true 0 |
The user sets the value type by selecting it from the drop-down menu in the column labeled Value Type.
This will add the selected string into the cell.
Users can speed up the process by duplication the value type set for one item to other items with the same value type making use of the different option MS Excel offers.
In this example, the user duplicated the isTime value type, by first copying it shown by the interrupted green cell border. And then selecting other items which are a time making use of Ctrl+left-click.
The user then pasted the value type into the selected rows.
A second option is to make use of the MS Excel autocomplete feature, where it does try to recognize what the user may want to enter as a repeat.
Litmus Production Record Database makes use of Identifiers to allow users to retrieve event data without having to know any internal database ID or Index. The concept of Identifiers for Production Events is explained in the chapter How are data recorded in Litmus Production Record Database.
By default, every Item will be set to the value No, as only up to a maximum of 5 Identifiers can be defined.
The user selects which hierarchy level 0 items are an Identifier by selecting the value Yes from the drop-down menu.
All Identifiers have to be defined for hierarchy level 0, which means that the column labeled Node/Level is empty.
While Identifiers have to be defined for hierarchy level 0, the Configurator will initially not prevent the user from selecting the value Yes for an Item which is not defined for hierarchy level 0. To allow users the freedom of being able to change their minds and rearrange the configuration.
The Configurator will not publish the data model if a none hierarchy level 0 item is set as Identifier and report the fact.