Showing
1 changed file
with
3 additions
and
9 deletions
... | ... | @@ -136,17 +136,11 @@ public class TenantActor extends RuleChainManagerActor { |
136 | 136 | } |
137 | 137 | |
138 | 138 | private void onComponentLifecycleMsg(ComponentLifecycleMsg msg) { |
139 | - RuleChain ruleChain = null; | |
140 | - if (msg.getEntityId().getEntityType() == EntityType.RULE_CHAIN) { | |
141 | - ruleChain = systemContext.getRuleChainService().findRuleChainById(tenantId, new RuleChainId(msg.getEntityId().getId())); | |
142 | - if (ruleChain !=null && !RuleChainType.SYSTEM.equals(ruleChain.getType())) { | |
143 | - log.debug("[{}] Non SYSTEM rule chains are ignored and not started. Current rule chain type [{}]", tenantId, ruleChain.getType()); | |
144 | - return; | |
145 | - } | |
146 | - } | |
147 | 139 | ActorRef target = getEntityActorRef(msg.getEntityId()); |
148 | 140 | if (target != null) { |
149 | - if (msg.getEntityId().getEntityType() == EntityType.RULE_CHAIN && ruleChain != null) { | |
141 | + if (msg.getEntityId().getEntityType() == EntityType.RULE_CHAIN) { | |
142 | + RuleChain ruleChain = systemContext.getRuleChainService(). | |
143 | + findRuleChainById(tenantId, new RuleChainId(msg.getEntityId().getId())); | |
150 | 144 | ruleChainManager.visit(ruleChain, target); |
151 | 145 | } |
152 | 146 | target.tell(msg, ActorRef.noSender()); | ... | ... |