Browse Source

Merge pull request #8293 from adovh/bug/fix-1899-rulechain-messages-sent-to-wrong-tenant

fix rulechain messages sent to wrong tenant
pull/8327/head
Andrew Shvayka 4 years ago
committed by GitHub
parent
commit
42f4c0c2be
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      rule-engine/rule-engine-components/src/main/java/org/thingsboard/rule/engine/flow/TbRuleChainInputNode.java

1
rule-engine/rule-engine-components/src/main/java/org/thingsboard/rule/engine/flow/TbRuleChainInputNode.java

@ -56,6 +56,7 @@ public class TbRuleChainInputNode implements TbNode {
public void init(TbContext ctx, TbNodeConfiguration configuration) throws TbNodeException {
this.config = TbNodeUtils.convert(configuration, TbRuleChainInputNodeConfiguration.class);
this.ruleChainId = new RuleChainId(UUID.fromString(config.getRuleChainId()));
ctx.checkTenantEntity(ruleChainId);
}
@Override

Loading…
Cancel
Save