Mapping properties in CBE event extension definitions to Enterprise Console event class attributes

Some properties in a CBE event extension definition correspond to an attribute in the Enterprise Console event class definition. Table 1 describes the mapping of property sub-fields in the CBE event extension definition to attributes in the Enterprise Console event class definition.

CBE event extension definition

Enterprise Console event class definition

property.name

attribute name

property.path

indicates whether the property should be mapped to an attribute

property.defaultValue

indicates whether the "default" facet should be added to the attribute

property.permittedValue

Ignored: the permitted values in a CBE event extension definition do not contain the pairs of numeric value and labels required to create an enumeration in the target Enterprise Console event class definition.

property.required

Ignored: All attributes in Enterprise Console event class definitions are required

property.minValue
property.maxValue

Ignored: there is no equivalent in Enterprise Console event class definitions

Table 1. Mapping of elements in a CBE event definition and attributes in a Enterprise Console event class definitions.


The following sections explain in details how each property in a CBE event definition is mapped to an attribute in a Enterprise Console event class definition:

Name

The BAROC generator utility maps the same basic properties as the CBE-TEC conversion algorithm, namely:

With the exception of globalInstanceId, the other attributes are defined in the EVENT class, which is always present in rule bases. The BAROC generator utility simply looks at these properties in the CBE event definition to determine whether they have new default values in the generated class, otherwise they are ignored.

The globalInstanceId property is mapped to the following attribute in the target Enterprise Console event class definition:

TEC_CLASS
    class_name ISA parent_class_name
        DEFINES {
            ...
            globalInstanceId: STRING;
        };
END

Path

If the property.path sub-field indicates the relative location of the attribute inside an event in the CBE format. When the property.path sub-field is set, it indicates that the attribute is not a basic attribute and therefore the property is discarded.

Default value

If the property.defaultValue sub-field is set, the facet "default" is added to the generated attribute in the Enterprise Console event class definition.

The value for the facet is the same as the default value for the property in the CBE event extension definition.


Related topics
Conversion of events in the CBE format to the Enterprise Console event format
Mapping Common Base Event attributes to Enterprise Console event attributes