Files
thingsboard-config/rule_chain/f40ba9c0-0b6a-11f1-9957-b95a9cb5ea38.json
2026-02-19 21:24:48 +00:00

190 lines
5.3 KiB
JSON

{
"entityType" : "RULE_CHAIN",
"entity" : {
"additionalInfo" : null,
"configuration" : null,
"debugMode" : false,
"externalId" : null,
"firstRuleNodeId" : {
"entityType" : "RULE_NODE",
"id" : "f40fc870-0b6a-11f1-9957-b95a9cb5ea38"
},
"id" : {
"entityType" : "RULE_CHAIN",
"id" : "f40ba9c0-0b6a-11f1-9957-b95a9cb5ea38"
},
"name" : "Root Rule Chain",
"root" : true,
"type" : "CORE"
},
"metaData" : {
"connections" : [ {
"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"
} ],
"firstNodeIndex" : 2,
"nodes" : [ {
"additionalInfo" : {
"layoutX" : 824,
"layoutY" : 156
},
"configuration" : {
"defaultTTL" : 0,
"useServerTs" : false,
"processingSettings" : {
"type" : "ON_EVERY_MESSAGE"
}
},
"configurationVersion" : 1,
"createdTime" : 0,
"debugSettings" : null,
"externalId" : null,
"id" : {
"entityType" : "RULE_NODE",
"id" : "f40ede10-0b6a-11f1-9957-b95a9cb5ea38"
},
"name" : "Save Timeseries",
"queueName" : null,
"ruleChainId" : null,
"singletonMode" : false,
"type" : "org.thingsboard.rule.engine.telemetry.TbMsgTimeseriesNode"
}, {
"additionalInfo" : {
"layoutX" : 825,
"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" : "f40f5340-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" : "f40fc870-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" : "f40fef80-0b6a-11f1-9957-b95a9cb5ea38"
},
"name" : "Log RPC from Device",
"queueName" : null,
"ruleChainId" : null,
"singletonMode" : false,
"type" : "org.thingsboard.rule.engine.action.TbLogNode"
}, {
"additionalInfo" : {
"layoutX" : 825,
"layoutY" : 379
},
"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" : "f4103da0-0b6a-11f1-9957-b95a9cb5ea38"
},
"name" : "Log Other",
"queueName" : null,
"ruleChainId" : null,
"singletonMode" : false,
"type" : "org.thingsboard.rule.engine.action.TbLogNode"
}, {
"additionalInfo" : {
"layoutX" : 825,
"layoutY" : 468
},
"configuration" : {
"timeoutInSeconds" : 60
},
"configurationVersion" : 0,
"createdTime" : 0,
"debugSettings" : null,
"externalId" : null,
"id" : {
"entityType" : "RULE_NODE",
"id" : "f41064b0-0b6a-11f1-9957-b95a9cb5ea38"
},
"name" : "RPC Call Request",
"queueName" : null,
"ruleChainId" : null,
"singletonMode" : false,
"type" : "org.thingsboard.rule.engine.rpc.TbSendRPCRequestNode"
} ],
"ruleChainConnections" : null
},
"relations" : [ ],
"attributes" : {
"SERVER_SCOPE" : [ ]
}
}