v1
This commit is contained in:
@@ -0,0 +1,190 @@
|
||||
{
|
||||
"entityType" : "RULE_CHAIN",
|
||||
"entity" : {
|
||||
"additionalInfo" : null,
|
||||
"configuration" : null,
|
||||
"debugMode" : false,
|
||||
"externalId" : null,
|
||||
"firstRuleNodeId" : {
|
||||
"entityType" : "RULE_NODE",
|
||||
"id" : "0f3180b0-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"id" : {
|
||||
"entityType" : "RULE_CHAIN",
|
||||
"id" : "0f2b1810-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"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" : "0f313290-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"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" : "0f3159a0-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"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" : "0f3180b0-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"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" : "0f31a7c0-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"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" : "0f31ced0-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"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" : "0f31ced1-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"name" : "RPC Call Request",
|
||||
"queueName" : null,
|
||||
"ruleChainId" : null,
|
||||
"singletonMode" : false,
|
||||
"type" : "org.thingsboard.rule.engine.rpc.TbSendRPCRequestNode"
|
||||
} ],
|
||||
"ruleChainConnections" : null
|
||||
},
|
||||
"relations" : [ ],
|
||||
"attributes" : {
|
||||
"SERVER_SCOPE" : [ ]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,248 @@
|
||||
{
|
||||
"entityType" : "RULE_CHAIN",
|
||||
"entity" : {
|
||||
"additionalInfo" : null,
|
||||
"configuration" : null,
|
||||
"debugMode" : false,
|
||||
"externalId" : null,
|
||||
"firstRuleNodeId" : {
|
||||
"entityType" : "RULE_NODE",
|
||||
"id" : "0f35c670-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"id" : {
|
||||
"entityType" : "RULE_CHAIN",
|
||||
"id" : "0f34b500-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"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" : "0f357850-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"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" : "0f359f60-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"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" : "0f35c670-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"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" : "0f35c671-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"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" : "0f35ed80-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"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" : "0f35ed81-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"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" : "0f361490-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"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" : "0f363ba0-994d-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"name" : "Push to cloud",
|
||||
"queueName" : null,
|
||||
"ruleChainId" : null,
|
||||
"singletonMode" : false,
|
||||
"type" : "org.thingsboard.rule.engine.edge.TbMsgPushToCloudNode"
|
||||
} ],
|
||||
"ruleChainConnections" : null
|
||||
},
|
||||
"relations" : [ ],
|
||||
"attributes" : {
|
||||
"SERVER_SCOPE" : [ ]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"entityType" : "RULE_CHAIN",
|
||||
"entity" : {
|
||||
"additionalInfo" : {
|
||||
"description" : "测试"
|
||||
},
|
||||
"configuration" : null,
|
||||
"debugMode" : false,
|
||||
"externalId" : null,
|
||||
"firstRuleNodeId" : null,
|
||||
"id" : {
|
||||
"entityType" : "RULE_CHAIN",
|
||||
"id" : "3189cf90-994e-11f1-802e-4fa498a9e306"
|
||||
},
|
||||
"name" : "Test",
|
||||
"root" : false,
|
||||
"type" : "CORE"
|
||||
},
|
||||
"metaData" : {
|
||||
"connections" : null,
|
||||
"firstNodeIndex" : null,
|
||||
"nodes" : [ ],
|
||||
"ruleChainConnections" : null
|
||||
},
|
||||
"relations" : [ ],
|
||||
"attributes" : {
|
||||
"SERVER_SCOPE" : [ ]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user