Solutions
...
Litmus Production Record Tag C...
Creating a tag configuration u...

3. Defining data model Items

29min

The purpose of the sheet Items is to define the Items, which includes their name and data type, as well as to which device and tag combination they belong.

Document image


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.

Defining the Item names

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.

Document image


The users enters the name into the next empty cell in this column.

Document image


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.

Invalid ASCII characters

If an invalid character is found, a prompt is shown to the user.

Document image


Invalid characters are marked in red.

Document image


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.

Document image


Invalid string length

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.

Document image


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.

Setting Default Values for other columns

If a user enters a value into the column labeled Item Name, the Configurator will prefill the columns labeled Device/Tag as well as Is Meta Data?.

Document image


This is done to ensure that these columns are not forgotten.

For the column labeled Device/Tag, the value is the first combination from the drop-down menu used by this column.

Document image


For the column Is Meta Data? the value is set to Yes. This is done on purpose, as users are mostly interested in Process Data, so they will be encourage to pay attention to each Item to ensure the setup is correct.

Tip

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.

Document image


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.

Document image


Adding an Item Description (optional)

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.

Document image


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.

Invalid ASCII characters

If an invalid character is found, a prompt is shown to the user.

Document image


Invalid characters are marked in red.

Document image


Invalid string length

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.

Document image


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.

Defining the device and tag

To assign an item to its respective device and tag, users select a string representing the device and tag from the drop-down menu in the column labeled Device/Tag.

Document image


This will add the selected string into the cell.

Document image


Note: Only values available through the drop-down menu can be selected.

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.

How to understand the strings shown by the drop-down menu

The column with the labeled Device/Tag will provide the user with a drop-down menu which shows the device and tag combinations as a string representation.

Document image


Combinations of devices and tags in the drop-down menu will shown as a pipe symbol "|" separated string.

On how to add additional devices and tags, please review the chapter 2. Defining the Device(s) and Tag(s).

The string has to be read from the left, with the first value being the device name and the second value being the tag name.

Document image


They are also listed in the order as in the sheet Tags.

Document image


Tip

If the user first entered all the items in the column labeled Item Name in the right order of their device and tag combination, the process of filling in the column labeled Device/Tag 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.

Document image


Then they simply duplicate this value to all the other items for this device and tag combination.

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.

Document image


The user then simply pasted the value into the selected rows.

Document image


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.

Setting the Value Type

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 for tags.

Value Type String

What data are stored

Example

isInteger

numeric values of the type:

  • Integer



25

isString

alphanumerical values

SAP2023051001

isDecimal

numeric values of the type:

  • Decimal / Float / real



124.457

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.

Document image


This will add the selected string into the cell.

Document image


Tip

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 isDecimal 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.

Document image


The user then pasted the value type into the selected rows.

Document image


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.

Document image


Defining if a Item records Process or Meta Data

Litmus Production Record Database allows to record both process data as well as meta data for tags. To learn more about the these two types of data, please review the chapter How are data for a Tags stored as well as the chapter Core Concept behind recording process and meta data for process tags.

By default, every Item will be set to the value Yes. This is done on purpose, as users are mostly interested in Process Data, so they will be encourage to pay attention to each Item to ensure the setup is correct.

The user selects which item will record process data by selecting the value No from the drop-down menu.

Document image


Tip

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 No value, by first copying it shown by the interrupted green cell border. And then selecting other items which are a process values making use of Ctrl+left-click.

Document image


The user then pasted the new value for the setting into the selected rows.

Document image


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.

Document image


Defining an Initial Value for an Item (optional)

Users are able to define an initial value for an Item using the column labeled Initial Value.



Document image


This allows to make sure, that if a a user requests data for a tag, at least one value does exist. This is most useful for items which have been set to be Meta Data.

Document image


The reason for this is, that process data are expected to be send on a constant base through for example Litmus Edge using the Solution Litmus Production Record Tag Message Conversion Flow.

Therefore, they will get a value as soon as the communication between Litmus Production Record Database and the data source such as Litmus Edge has been established.

Meta data on the other hand can be very static, being updated very infrequently or potentially never after their initial value. To not have to create a special flow or use SQL to provide a value for items set to be meta data, the Configurator allows users to therefore provide this initial value when setting up the tag.

Users simply enter the desired initial value into a cell.

Document image


Note: To be able to add an initial value, the value type has to be set. Otherwise the cell will be cleared, as the Configurator can not check if the value matches the value type.

The configurator will verify for Initial Values which are of the value type isString for invalid ASCII characters. To learn more about which ASCII characters are allowed, review the section Restrictions on ASCII characters allowed to be used.

For items which are not of the value type isString, the value is verified it is is of the correct value type.

Invalid ASCII characters

If an invalid character is found, a prompt is shown to the user.

Document image


Invalid characters are marked in red.

Document image


Invalid values if Value Type not isString

If an invalid value is found, a prompt is shown to the user.

Document image


Invalid values are marked in red.

Document image


Invalid string length

The maximum length of a string value can not exceed 256 characters.

If an Initial Value for the value type isString is longer 256 characters, the user will be prompted.

Document image


Note: Initial Values for Items which exceed the 256 character limit, will by default be trimmed to 256 characters if no action is taken by the user.

Tip

Users can speed up the process by duplication the initial value set for one item to other items with the same initial value making use of the different option MS Excel offers.

In this example, the user duplicated the value San Jose, by first copying it shown by the interrupted green cell border. And then selecting other items which will have the same value.

Document image


The user then pasted the new value for the setting into the selected rows.

Document image


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.

Document image