Added entity view to filter nodes

This commit is contained in:
Volodymyr Babak 2019-05-21 14:33:01 +03:00
parent fd6eb536e7
commit 9bc5e6760a
2 changed files with 6 additions and 3 deletions

View File

@ -27,7 +27,7 @@ import org.thingsboard.server.common.msg.TbMsg;
type = ComponentType.FILTER, type = ComponentType.FILTER,
name = "originator type switch", name = "originator type switch",
configClazz = EmptyNodeConfiguration.class, configClazz = EmptyNodeConfiguration.class,
relationTypes = {"Device", "Asset", "Tenant", "Customer", "User", "Dashboard", "Rule chain", "Rule node"}, relationTypes = {"Device", "Asset", "Entity View", "Tenant", "Customer", "User", "Dashboard", "Rule chain", "Rule node"},
nodeDescription = "Route incoming messages by Message Originator Type", nodeDescription = "Route incoming messages by Message Originator Type",
nodeDetails = "Routes messages to chain according to the originator type ('Device', 'Asset', etc.).", nodeDetails = "Routes messages to chain according to the originator type ('Device', 'Asset', etc.).",
uiResources = {"static/rulenode/rulenode-core-config.js"}, uiResources = {"static/rulenode/rulenode-core-config.js"},
@ -64,6 +64,9 @@ public class TbOriginatorTypeSwitchNode implements TbNode {
case DEVICE: case DEVICE:
relationType = "Device"; relationType = "Device";
break; break;
case ENTITY_VIEW:
relationType = "Entity View";
break;
case RULE_CHAIN: case RULE_CHAIN:
relationType = "Rule chain"; relationType = "Rule chain";
break; break;