Browse Source

SERVER_SCOPE by default, if not provided in metadata

pull/3693/head
Volodymyr Babak 6 years ago
parent
commit
3bdb7bb5ad
  1. 2
      rule-engine/rule-engine-components/src/main/java/org/thingsboard/rule/engine/edge/TbMsgPushToEdgeNode.java
  2. 2
      rule-engine/rule-engine-components/src/main/java/org/thingsboard/rule/engine/telemetry/TbMsgAttributesNode.java

2
rule-engine/rule-engine-components/src/main/java/org/thingsboard/rule/engine/edge/TbMsgPushToEdgeNode.java

@ -176,7 +176,7 @@ public class TbMsgPushToEdgeNode implements TbNode {
private String getScope(Map<String, String> metadata) { private String getScope(Map<String, String> metadata) {
String scope = metadata.get(SCOPE); String scope = metadata.get(SCOPE);
if (StringUtils.isEmpty(scope)) { if (StringUtils.isEmpty(scope)) {
// TODO: voba - move this to configuration of the node or some other place // TODO: voba - move this to configuration of the node UI or some other place
scope = DataConstants.SERVER_SCOPE; scope = DataConstants.SERVER_SCOPE;
} }
return scope; return scope;

2
rule-engine/rule-engine-components/src/main/java/org/thingsboard/rule/engine/telemetry/TbMsgAttributesNode.java

@ -48,8 +48,6 @@ public class TbMsgAttributesNode implements TbNode {
private TbMsgAttributesNodeConfiguration config; private TbMsgAttributesNodeConfiguration config;
@Override @Override
public void init(TbContext ctx, TbNodeConfiguration configuration) throws TbNodeException { public void init(TbContext ctx, TbNodeConfiguration configuration) throws TbNodeException {
this.config = TbNodeUtils.convert(configuration, TbMsgAttributesNodeConfiguration.class); this.config = TbNodeUtils.convert(configuration, TbMsgAttributesNodeConfiguration.class);

Loading…
Cancel
Save