Editing Element Business Properties


Defining the Business Attributes of Element


Depending on the business requirements, the business attributes of elements can be defined. For example, device status, switch status, rotation, fault, etc.

Adding Business Attributes


  1. Select a blank space on the canvas, and in the Data Binding tab on the right, select Add properties to add a new attribute.
  2. Select the corresponding cell of the new attribute and edit the name, value type, default value and other information of the attribute.

Note

The added business attributes of the element will be displayed directly in the panel as configuration items of the element. In the panel, configuration items can be configured directly and asset data can be bound.

Managing Business Attributes


  • Select the order button order to adjust the order of the attributes.
  • Select delete delete to delete the selected attribute.


Associating Element Business Attributes


The business attributes correspond to different event performances. For example, the event performance of the switch state is switch on and switch off. In these two cases, the attributes of the graph will behave differently. For example, when the switch is on, the color is green; when the switch is off, the color is red.

Therefore, business attributes need to be associated with graphical configuration items to represent events.


  1. Select the connect button connect to the right of the configuration item to be associated to enter the business attribute association pop-up window.

  2. Associate business attributes, as applicable.

    • If the value of the business attribute can be used directly as an input value for this configuration item.

      • Type: select attr.
      • Property: Fill in the associated business attribute.
    • If the value of the business attribute is the determination basis for the different performance of the configuration item.

      • Type: select func.
      • Function editing area: edit relevant logic code according to business requirements.


      ../_images/connect2.png


  3. Select OK to complete the business attribute association.

Note

When the type is attr, you can complete the association by filling in the new business attribute directly in the Property box. Then select Import import under Data Binding and the new business attribute you just defined will appear in the list.