8 changed files with 84 additions and 195 deletions
@ -1,167 +0,0 @@ |
|||||
{ |
|
||||
"ruleChain": { |
|
||||
"additionalInfo": null, |
|
||||
"name": "Edge Root Rule Chain", |
|
||||
"type": "EDGE", |
|
||||
"firstRuleNodeId": null, |
|
||||
"root": true, |
|
||||
"debugMode": false, |
|
||||
"configuration": null |
|
||||
}, |
|
||||
"metadata": { |
|
||||
"firstNodeIndex": 0, |
|
||||
"nodes": [ |
|
||||
{ |
|
||||
"additionalInfo": { |
|
||||
"description": "Process incoming messages from devices with the alarm rules defined in the device profile. Dispatch all incoming messages with \"Success\" relation type.", |
|
||||
"layoutX": 187, |
|
||||
"layoutY": 468 |
|
||||
}, |
|
||||
"type": "org.thingsboard.rule.engine.profile.TbDeviceProfileNode", |
|
||||
"name": "Device Profile Node", |
|
||||
"debugMode": false, |
|
||||
"configuration": { |
|
||||
"persistAlarmRulesState": false, |
|
||||
"fetchAlarmRulesStateOnStart": false |
|
||||
} |
|
||||
}, |
|
||||
{ |
|
||||
"additionalInfo": { |
|
||||
"layoutX": 823, |
|
||||
"layoutY": 157 |
|
||||
}, |
|
||||
"type": "org.thingsboard.rule.engine.telemetry.TbMsgTimeseriesNode", |
|
||||
"name": "Save Timeseries", |
|
||||
"debugMode": false, |
|
||||
"configuration": { |
|
||||
"defaultTTL": 0 |
|
||||
} |
|
||||
}, |
|
||||
{ |
|
||||
"additionalInfo": { |
|
||||
"layoutX": 824, |
|
||||
"layoutY": 52 |
|
||||
}, |
|
||||
"type": "org.thingsboard.rule.engine.telemetry.TbMsgAttributesNode", |
|
||||
"name": "Save Client Attributes", |
|
||||
"debugMode": false, |
|
||||
"configuration": { |
|
||||
"scope": "CLIENT_SCOPE" |
|
||||
} |
|
||||
}, |
|
||||
{ |
|
||||
"additionalInfo": { |
|
||||
"layoutX": 347, |
|
||||
"layoutY": 149 |
|
||||
}, |
|
||||
"type": "org.thingsboard.rule.engine.filter.TbMsgTypeSwitchNode", |
|
||||
"name": "Message Type Switch", |
|
||||
"debugMode": false, |
|
||||
"configuration": { |
|
||||
"version": 0 |
|
||||
} |
|
||||
}, |
|
||||
{ |
|
||||
"additionalInfo": { |
|
||||
"layoutX": 825, |
|
||||
"layoutY": 266 |
|
||||
}, |
|
||||
"type": "org.thingsboard.rule.engine.action.TbLogNode", |
|
||||
"name": "Log RPC from Device", |
|
||||
"debugMode": false, |
|
||||
"configuration": { |
|
||||
"jsScript": "return '\\nIncoming message:\\n' + JSON.stringify(msg) + '\\nIncoming metadata:\\n' + JSON.stringify(metadata);" |
|
||||
} |
|
||||
}, |
|
||||
{ |
|
||||
"additionalInfo": { |
|
||||
"layoutX": 824, |
|
||||
"layoutY": 378 |
|
||||
}, |
|
||||
"type": "org.thingsboard.rule.engine.action.TbLogNode", |
|
||||
"name": "Log Other", |
|
||||
"debugMode": false, |
|
||||
"configuration": { |
|
||||
"jsScript": "return '\\nIncoming message:\\n' + JSON.stringify(msg) + '\\nIncoming metadata:\\n' + JSON.stringify(metadata);" |
|
||||
} |
|
||||
}, |
|
||||
{ |
|
||||
"additionalInfo": { |
|
||||
"layoutX": 824, |
|
||||
"layoutY": 466 |
|
||||
}, |
|
||||
"type": "org.thingsboard.rule.engine.rpc.TbSendRPCRequestNode", |
|
||||
"name": "RPC Call Request", |
|
||||
"debugMode": false, |
|
||||
"configuration": { |
|
||||
"timeoutInSeconds": 60 |
|
||||
} |
|
||||
}, |
|
||||
{ |
|
||||
"additionalInfo": { |
|
||||
"layoutX": 1129, |
|
||||
"layoutY": 52 |
|
||||
}, |
|
||||
"type": "org.thingsboard.rule.engine.edge.TbMsgPushToCloudNode", |
|
||||
"name": "Push to cloud", |
|
||||
"debugMode": false, |
|
||||
"configuration": { |
|
||||
"scope": "SERVER_SCOPE" |
|
||||
} |
|
||||
} |
|
||||
], |
|
||||
"connections": [ |
|
||||
{ |
|
||||
"fromIndex": 0, |
|
||||
"toIndex": 3, |
|
||||
"type": "Success" |
|
||||
}, |
|
||||
{ |
|
||||
"fromIndex": 1, |
|
||||
"toIndex": 7, |
|
||||
"type": "Success" |
|
||||
}, |
|
||||
{ |
|
||||
"fromIndex": 2, |
|
||||
"toIndex": 7, |
|
||||
"type": "Success" |
|
||||
}, |
|
||||
{ |
|
||||
"fromIndex": 3, |
|
||||
"toIndex": 6, |
|
||||
"type": "RPC Request to Device" |
|
||||
}, |
|
||||
{ |
|
||||
"fromIndex": 3, |
|
||||
"toIndex": 5, |
|
||||
"type": "Other" |
|
||||
}, |
|
||||
{ |
|
||||
"fromIndex": 3, |
|
||||
"toIndex": 2, |
|
||||
"type": "Post attributes" |
|
||||
}, |
|
||||
{ |
|
||||
"fromIndex": 3, |
|
||||
"toIndex": 1, |
|
||||
"type": "Post telemetry" |
|
||||
}, |
|
||||
{ |
|
||||
"fromIndex": 3, |
|
||||
"toIndex": 4, |
|
||||
"type": "RPC Request from Device" |
|
||||
}, |
|
||||
{ |
|
||||
"fromIndex": 3, |
|
||||
"toIndex": 7, |
|
||||
"type": "Attributes Updated" |
|
||||
}, |
|
||||
{ |
|
||||
"fromIndex": 4, |
|
||||
"toIndex": 7, |
|
||||
"type": "Success" |
|
||||
} |
|
||||
], |
|
||||
"ruleChainConnections": null |
|
||||
} |
|
||||
} |
|
||||
Loading…
Reference in new issue