...
|
...
|
@@ -24,6 +24,7 @@ import org.thingsboard.server.actors.ruleChain.RuleChainActor; |
24
|
24
|
import org.thingsboard.server.actors.shared.EntityActorsManager;
|
25
|
25
|
import org.thingsboard.server.common.data.id.RuleChainId;
|
26
|
26
|
import org.thingsboard.server.common.data.rule.RuleChain;
|
|
27
|
+import org.thingsboard.server.common.data.rule.RuleChainType;
|
27
|
28
|
import org.thingsboard.server.dao.rule.RuleChainService;
|
28
|
29
|
|
29
|
30
|
/**
|
...
|
...
|
@@ -50,7 +51,7 @@ public abstract class RuleChainManager extends EntityActorsManager<RuleChainId, |
50
|
51
|
|
51
|
52
|
@Override
|
52
|
53
|
public void visit(RuleChain entity, ActorRef actorRef) {
|
53
|
|
- if (entity != null && entity.isRoot()) {
|
|
54
|
+ if (entity != null && entity.isRoot() && entity.getType().equals(RuleChainType.SYSTEM)) {
|
54
|
55
|
rootChain = entity;
|
55
|
56
|
rootChainActor = actorRef;
|
56
|
57
|
}
|
...
|
...
|
|