Browse Source

updateAttributesOnValueChange is true for rule chain templates

pull/9105/head
Sergey Matvienko 3 years ago
parent
commit
1569ac6daf
  1. 4
      application/src/main/data/json/edge/rule_chains/edge_root_rule_chain.json
  2. 5
      application/src/main/data/json/tenant/device_profile/rule_chain_template.json
  3. 4
      application/src/main/data/json/tenant/rule_chains/root_rule_chain.json
  4. 1
      rule-engine/rule-engine-components/src/main/java/org/thingsboard/rule/engine/telemetry/TbMsgAttributesNodeConfiguration.java

4
application/src/main/data/json/edge/rule_chains/edge_root_rule_chain.json

@ -50,7 +50,9 @@
"debugMode": false,
"configuration": {
"scope": "CLIENT_SCOPE",
"notifyDevice": "false"
"notifyDevice": "false",
"sendAttributesUpdatedNotification": "false",
"updateAttributesOnValueChange": "true"
},
"externalId": null
},

5
application/src/main/data/json/tenant/device_profile/rule_chain_template.json

@ -33,7 +33,10 @@
"name": "Save Client Attributes",
"debugMode": false,
"configuration": {
"scope": "CLIENT_SCOPE"
"scope": "CLIENT_SCOPE",
"notifyDevice": "false",
"sendAttributesUpdatedNotification": "false",
"updateAttributesOnValueChange": "true"
}
},
{

4
application/src/main/data/json/tenant/rule_chains/root_rule_chain.json

@ -33,7 +33,9 @@
"debugMode": false,
"configuration": {
"scope": "CLIENT_SCOPE",
"notifyDevice": "false"
"notifyDevice": "false",
"sendAttributesUpdatedNotification": "false",
"updateAttributesOnValueChange": "true"
}
},
{

1
rule-engine/rule-engine-components/src/main/java/org/thingsboard/rule/engine/telemetry/TbMsgAttributesNodeConfiguration.java

@ -34,6 +34,7 @@ public class TbMsgAttributesNodeConfiguration implements NodeConfiguration<TbMsg
configuration.setScope(DataConstants.SERVER_SCOPE);
configuration.setNotifyDevice(false);
configuration.setSendAttributesUpdatedNotification(false);
// backward compatibility for existing tenants, but rule chain templates will have the true value for new tenants
configuration.setUpdateAttributesOnValueChange(false);
return configuration;
}

Loading…
Cancel
Save