Commit 88a171d7df00e13ff75c2e55236a878622be28af

Authored by Volodymyr Babak
1 parent 438ee3bb

Added DELETE attributes case handle

@@ -113,10 +113,10 @@ public class TbCopyAttributesToEntityViewNode implements TbNode { @@ -113,10 +113,10 @@ public class TbCopyAttributesToEntityViewNode implements TbNode {
113 attributes.add(value.getAsString()); 113 attributes.add(value.getAsString());
114 } 114 }
115 } 115 }
116 - List<String> filteredAttributes =  
117 - attributes.stream().filter(attr -> attributeContainsInEntityView(scope, attr, entityView)).collect(Collectors.toList());  
118 - ctx.getAttributesService().removeAll(entityView.getId(), scope, filteredAttributes);  
119 } 116 }
  117 + List<String> filteredAttributes =
  118 + attributes.stream().filter(attr -> attributeContainsInEntityView(scope, attr, entityView)).collect(Collectors.toList());
  119 + ctx.getAttributesService().removeAll(entityView.getId(), scope, filteredAttributes);
120 transformAndTellNext(ctx, msg, entityView); 120 transformAndTellNext(ctx, msg, entityView);
121 } 121 }
122 } 122 }