{ "entityType" : "RULE_CHAIN", "entity" : { "additionalInfo" : null, "configuration" : null, "debugMode" : false, "externalId" : null, "firstRuleNodeId" : { "entityType" : "RULE_NODE", "id" : "f415e2f0-0b6a-11f1-9957-b95a9cb5ea38" }, "id" : { "entityType" : "RULE_CHAIN", "id" : "f414aa70-0b6a-11f1-9957-b95a9cb5ea38" }, "name" : "Edge Root Rule Chain", "root" : true, "type" : "EDGE" }, "metaData" : { "connections" : [ { "fromIndex" : 0, "toIndex" : 6, "type" : "Success" }, { "fromIndex" : 1, "toIndex" : 6, "type" : "Success" }, { "fromIndex" : 2, "toIndex" : 0, "type" : "Post telemetry" }, { "fromIndex" : 2, "toIndex" : 1, "type" : "Post attributes" }, { "fromIndex" : 2, "toIndex" : 3, "type" : "RPC Request from Device" }, { "fromIndex" : 2, "toIndex" : 4, "type" : "Other" }, { "fromIndex" : 2, "toIndex" : 5, "type" : "RPC Request to Device" }, { "fromIndex" : 2, "toIndex" : 7, "type" : "Attributes Deleted" }, { "fromIndex" : 2, "toIndex" : 7, "type" : "Attributes Updated" } ], "firstNodeIndex" : 2, "nodes" : [ { "additionalInfo" : { "layoutX" : 823, "layoutY" : 157 }, "configuration" : { "defaultTTL" : 0, "useServerTs" : false, "processingSettings" : { "type" : "ON_EVERY_MESSAGE" } }, "configurationVersion" : 1, "createdTime" : 0, "debugSettings" : null, "externalId" : null, "id" : { "entityType" : "RULE_NODE", "id" : "f41594d0-0b6a-11f1-9957-b95a9cb5ea38" }, "name" : "Save Timeseries", "queueName" : null, "ruleChainId" : null, "singletonMode" : false, "type" : "org.thingsboard.rule.engine.telemetry.TbMsgTimeseriesNode" }, { "additionalInfo" : { "layoutX" : 824, "layoutY" : 52 }, "configuration" : { "processingSettings" : { "type" : "ON_EVERY_MESSAGE" }, "scope" : "CLIENT_SCOPE", "notifyDevice" : false, "sendAttributesUpdatedNotification" : false, "updateAttributesOnlyOnValueChange" : true }, "configurationVersion" : 3, "createdTime" : 0, "debugSettings" : null, "externalId" : null, "id" : { "entityType" : "RULE_NODE", "id" : "f415bbe0-0b6a-11f1-9957-b95a9cb5ea38" }, "name" : "Save Client Attributes", "queueName" : null, "ruleChainId" : null, "singletonMode" : false, "type" : "org.thingsboard.rule.engine.telemetry.TbMsgAttributesNode" }, { "additionalInfo" : { "layoutX" : 347, "layoutY" : 149 }, "configuration" : { "version" : 0 }, "configurationVersion" : 0, "createdTime" : 0, "debugSettings" : null, "externalId" : null, "id" : { "entityType" : "RULE_NODE", "id" : "f415e2f0-0b6a-11f1-9957-b95a9cb5ea38" }, "name" : "Message Type Switch", "queueName" : null, "ruleChainId" : null, "singletonMode" : false, "type" : "org.thingsboard.rule.engine.filter.TbMsgTypeSwitchNode" }, { "additionalInfo" : { "layoutX" : 825, "layoutY" : 266 }, "configuration" : { "scriptLang" : "TBEL", "jsScript" : "return '\\nIncoming message:\\n' + JSON.stringify(msg) + '\\nIncoming metadata:\\n' + JSON.stringify(metadata);", "tbelScript" : "return '\\nIncoming message:\\n' + JSON.stringify(msg) + '\\nIncoming metadata:\\n' + JSON.stringify(metadata);" }, "configurationVersion" : 0, "createdTime" : 0, "debugSettings" : null, "externalId" : null, "id" : { "entityType" : "RULE_NODE", "id" : "f4160a00-0b6a-11f1-9957-b95a9cb5ea38" }, "name" : "Log RPC from Device", "queueName" : null, "ruleChainId" : null, "singletonMode" : false, "type" : "org.thingsboard.rule.engine.action.TbLogNode" }, { "additionalInfo" : { "layoutX" : 824, "layoutY" : 378 }, "configuration" : { "scriptLang" : "TBEL", "jsScript" : "return '\\nIncoming message:\\n' + JSON.stringify(msg) + '\\nIncoming metadata:\\n' + JSON.stringify(metadata);", "tbelScript" : "return '\\nIncoming message:\\n' + JSON.stringify(msg) + '\\nIncoming metadata:\\n' + JSON.stringify(metadata);" }, "configurationVersion" : 0, "createdTime" : 0, "debugSettings" : null, "externalId" : null, "id" : { "entityType" : "RULE_NODE", "id" : "f4160a01-0b6a-11f1-9957-b95a9cb5ea38" }, "name" : "Log Other", "queueName" : null, "ruleChainId" : null, "singletonMode" : false, "type" : "org.thingsboard.rule.engine.action.TbLogNode" }, { "additionalInfo" : { "layoutX" : 824, "layoutY" : 466 }, "configuration" : { "timeoutInSeconds" : 60 }, "configurationVersion" : 0, "createdTime" : 0, "debugSettings" : null, "externalId" : null, "id" : { "entityType" : "RULE_NODE", "id" : "f4163110-0b6a-11f1-9957-b95a9cb5ea38" }, "name" : "RPC Call Request", "queueName" : null, "ruleChainId" : null, "singletonMode" : false, "type" : "org.thingsboard.rule.engine.rpc.TbSendRPCRequestNode" }, { "additionalInfo" : { "layoutX" : 1126, "layoutY" : 104 }, "configuration" : { "scope" : "CLIENT_SCOPE" }, "configurationVersion" : 0, "createdTime" : 0, "debugSettings" : null, "externalId" : null, "id" : { "entityType" : "RULE_NODE", "id" : "f416a640-0b6a-11f1-9957-b95a9cb5ea38" }, "name" : "Push to cloud", "queueName" : null, "ruleChainId" : null, "singletonMode" : false, "type" : "org.thingsboard.rule.engine.edge.TbMsgPushToCloudNode" }, { "additionalInfo" : { "layoutX" : 826, "layoutY" : 601 }, "configuration" : { "scope" : "SERVER_SCOPE" }, "configurationVersion" : 0, "createdTime" : 0, "debugSettings" : null, "externalId" : null, "id" : { "entityType" : "RULE_NODE", "id" : "f416cd50-0b6a-11f1-9957-b95a9cb5ea38" }, "name" : "Push to cloud", "queueName" : null, "ruleChainId" : null, "singletonMode" : false, "type" : "org.thingsboard.rule.engine.edge.TbMsgPushToCloudNode" } ], "ruleChainConnections" : null }, "relations" : [ ], "attributes" : { "SERVER_SCOPE" : [ ] } }