dashboardjavacloudcoapiotiot-analyticsiot-platformiot-solutionskafkalwm2mmicroservicesmiddlewaremqttnettyplatformsnmpthingsboardvisualizationwebsocketswidgets
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.3 KiB
56 lines
1.3 KiB
{
|
|
"firstNodeIndex": 0,
|
|
"nodes": [
|
|
{
|
|
"additionalInfo": {
|
|
"layoutX": 325,
|
|
"layoutY": 150
|
|
},
|
|
"type": "org.thingsboard.rule.engine.filter.TbMsgTypeSwitchNode",
|
|
"name": "msgTypeSwitch",
|
|
"configuration": {
|
|
"version": 0
|
|
}
|
|
},
|
|
{
|
|
"additionalInfo": {
|
|
"layoutX": 60,
|
|
"layoutY": 300
|
|
},
|
|
"type": "org.thingsboard.rule.engine.transform.TbTransformMsgNode",
|
|
"name": "formResponse",
|
|
"configuration": {
|
|
"jsScript": "if (msg.method == \"getResponse\") {\n return {msg: {\"response\": \"requestReceived\"}, metadata: metadata, msgType: msgType};\n}\n\nreturn {msg: msg, metadata: metadata, msgType: msgType};"
|
|
}
|
|
},
|
|
{
|
|
"additionalInfo": {
|
|
"layoutX": 450,
|
|
"layoutY": 300
|
|
},
|
|
"type": "org.thingsboard.rule.engine.rpc.TbSendRPCReplyNode",
|
|
"name": "rpcReply",
|
|
"configuration": {
|
|
"requestIdMetaDataAttribute": "requestId"
|
|
}
|
|
}
|
|
],
|
|
"connections": [
|
|
{
|
|
"fromIndex": 0,
|
|
"toIndex": 1,
|
|
"type": "RPC Request from Device"
|
|
},
|
|
{
|
|
"fromIndex": 1,
|
|
"toIndex": 2,
|
|
"type": "Success"
|
|
},
|
|
{
|
|
"fromIndex": 1,
|
|
"toIndex": 2,
|
|
"type": "Failure"
|
|
}
|
|
],
|
|
"ruleChainConnections": null
|
|
}
|