Web Components for Insights Hub and Industrial IoT - Rule Table - Developer Documentation
Skip to content

Web Components for Insights Hub and Industrial IoT
Rule Table

The Rule Table displays all created Rules for Asset Types in a table view.

A triggered Rule is marked in the overview table with the color of the configured severity.





interface IDataModel {
    // forces reload of data, e.g. re-loading the rules
    refresh(): void;
interface IViewModel {
  refresh(): void;


  • The number of rules which can be activated simultaneously is limited and depends on the selected plan size.
    To enhance the rule limit further "Rules Quota Upgrade" packages can be purchased in the Store. For latest information refer to the IoT Value Plan product sheets or contact customer support.
  • The rule engine triggers only in case of state changes. If values are still violated, the rules are not triggered again.


A rule has been created to monitor a value greater 90.
Now the value changes from 89 to 91 - means a state change happens - and the rule will be triggered and perform the configured actions.
Next the value changes from 91 to 100 - here no state change happens, as the rule is already violated, it won't be triggered again.


  • mdsp:core:tsm.full-access (for full access like create and delete)
  • mdsp:core:tsm.read-only (read only)


Refresh the Rule Table

The data model of the Rule Table can be refreshed to get the latest list of rules, for example to update the view cyclically.


Overwrite asset id in table headers with asset name

With the snippet below, you can format the table header and the columns, for example, to replace the asset type with a more descriptive text or to show text in different languages.

document.querySelector('mdsp-rule-table').tableFormatters = {
  columnFormatters: {
   "assetType": {
      header: function(value){
        return "Asset Type";
      value: function(value){
         return "DUMMY_REPLACE_ASSET_TYPE";

Display Rule Table in different contexts

If the rule table is used without the asset type attribute set, all rules in the tenant a user has access to will be shown.

The table can be filtered with a specific asset type:

ruleTableComp.assetTypeId = 'myCustomAssetType'
In this case only Rules configured for myCustomAssetType will be displayed.

Except where otherwise noted, content on this site is licensed under the Development License Agreement.

Last update: April 13, 2023