root_rule_chain.json

103 lines | 2.259 kB Blame History Raw Download
{
  "ruleChain": {
    "additionalInfo": null,
    "name": "Root Rule Chain",
    "firstRuleNodeId": null,
    "root": true,
    "debugMode": false,
    "configuration": null
  },
  "metadata": {
    "firstNodeIndex": 2,
    "nodes": [
      {
        "additionalInfo": {
          "layoutX": 639,
          "layoutY": 113
        },
        "type": "org.thingsboard.rule.engine.filter.TbMsgTypeFilterNode",
        "name": "PostAttributes",
        "debugMode": true,
        "configuration": {
          "messageTypes": [
            "POST_ATTRIBUTES_REQUEST"
          ]
        }
      },
      {
        "additionalInfo": {
          "layoutX": 638,
          "layoutY": 206
        },
        "type": "org.thingsboard.rule.engine.filter.TbMsgTypeFilterNode",
        "name": "PostTelemetry",
        "debugMode": true,
        "configuration": {
          "messageTypes": [
            "POST_TELEMETRY_REQUEST"
          ]
        }
      },
      {
        "additionalInfo": {
          "layoutX": 297,
          "layoutY": 148
        },
        "type": "org.thingsboard.rule.engine.action.TbLogNode",
        "name": "Log",
        "debugMode": false,
        "configuration": {
          "jsScript": "return 'incoming message = ' + msg;"
        }
      },
      {
        "additionalInfo": {
          "layoutX": 905,
          "layoutY": 203
        },
        "type": "org.thingsboard.rule.engine.telemetry.TbMsgTimeseriesNode",
        "name": "SaveTS",
        "debugMode": true,
        "configuration": {
          "defaultTTL": 0
        }
      },
      {
        "additionalInfo": {
          "layoutX": 904,
          "layoutY": 110
        },
        "type": "org.thingsboard.rule.engine.telemetry.TbMsgAttributesNode",
        "name": "save client attributes",
        "debugMode": true,
        "configuration": {
          "scope": "CLIENT_SCOPE"
        }
      }
    ],
    "connections": [
      {
        "fromIndex": 0,
        "toIndex": 4,
        "type": "True"
      },
      {
        "fromIndex": 1,
        "toIndex": 3,
        "type": "True"
      },
      {
        "fromIndex": 2,
        "toIndex": 0,
        "type": "Success"
      },
      {
        "fromIndex": 2,
        "toIndex": 1,
        "type": "Success"
      }
    ],
    "ruleChainConnections": null
  }
}