100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps
Java asset-managementbuildingdashboarddataplatformdevice-managementedge-computingenergyenergy-managementenergy-monitorfleet-managementfleet-telematicsiotiot-applicationiot-platformmodbusmqttmqtt-brokerota-updaterules-enginesmartcity
[Flow rules] Disable `LOG_OUTPUT` and change translations (#1635)
Panos Kalogeropoulos04e64c93d5da
diff --git a/manager/src/main/java/org/openremote/manager/rules/flow/FlowResourceImpl.java b/manager/src/main/java/org/openremote/manager/rules/flow/FlowResourceImpl.javaindex 6d1af8f81..e83a744ce 100644--- a/manager/src/main/java/org/openremote/manager/rules/flow/FlowResourceImpl.java+++ b/manager/src/main/java/org/openremote/manager/rules/flow/FlowResourceImpl.java@@ -9,6 +9,7 @@ import org.openremote.model.http.RequestParams;import org.openremote.model.rules.flow.*;import java.util.Arrays;+import java.util.Objects;import java.util.logging.Logger;public class FlowResourceImpl extends ManagerWebResource implements FlowResource {@@ -23,7 +24,11 @@ public class FlowResourceImpl extends ManagerWebResource implements FlowResourceLOG.finest("Node found: " + n.getName());});- nodes = Arrays.stream(NodeModel.values()).map(NodeModel::getDefinition).toArray(Node[]::new);+ nodes = Arrays.stream(NodeModel.values()).+ map(NodeModel::getDefinition)+ // Filter out LOG_OUTPUT node+ .filter(definition -> !Objects.equals(definition.getName(), "LOG_OUTPUT"))+ .toArray(Node[]::new);}diff --git a/ui/app/shared/locales/ar/or.json b/ui/app/shared/locales/ar/or.jsonindex ae2d43063..013c46c56 100644--- a/ui/app/shared/locales/ar/or.json+++ b/ui/app/shared/locales/ar/or.json@@ -131,9 +131,9 @@"TEXT_SWITCH": "تبديل النص ","ROUND_NODE": " تقريب القيمة إلى","LOG_OUTPUT": "Write to Logs",- "DERIVATIVE": "Read attribute derivative",- "INTEGRAL": "Read attribute integral",- "HISTORIC_VALUE": "Read attribute history",+ "DERIVATIVE": "Attribute derivative",+ "INTEGRAL": "Attribute integral",+ "HISTORIC_VALUE": "Attribute history","MAX_PROCESSOR": "Maximum","MIN_PROCESSOR": "Minimum","AVERAGE_PROCESSOR": "Average",diff --git a/ui/app/shared/locales/cn/or.json b/ui/app/shared/locales/cn/or.jsonindex 8a259c90f..4fb3fbc2f 100644--- a/ui/app/shared/locales/cn/or.json+++ b/ui/app/shared/locales/cn/or.json@@ -135,9 +135,9 @@"TEXT_SWITCH": "文本逻辑","ROUND_NODE": "四舍五入","LOG_OUTPUT": "Write to Logs",- "DERIVATIVE": "Read attribute derivative",- "INTEGRAL": "Read attribute integral",- "HISTORIC_VALUE": "Read attribute history",+ "DERIVATIVE": "Attribute derivative",+ "INTEGRAL": "Attribute integral",+ "HISTORIC_VALUE": "Attribute history","MAX_PROCESSOR": "Maximum","MIN_PROCESSOR": "Minimum","AVERAGE_PROCESSOR": "Average",diff --git a/ui/app/shared/locales/de/or.json b/ui/app/shared/locales/de/or.jsonindex 4c26f103f..19cfacf3a 100644--- a/ui/app/shared/locales/de/or.json+++ b/ui/app/shared/locales/de/or.json@@ -149,9 +149,9 @@"TEXT_SWITCH": "Textueller Schalter","ROUND_NODE": "Runden","LOG_OUTPUT": "Write to Logs",- "DERIVATIVE": "Read attribute derivative",- "INTEGRAL": "Read attribute integral",- "HISTORIC_VALUE": "Read attribute history",+ "DERIVATIVE": "Attribute derivative",+ "INTEGRAL": "Attribute integral",+ "HISTORIC_VALUE": "Attribute history","MAX_PROCESSOR": "Maximum","MIN_PROCESSOR": "Minimum","AVERAGE_PROCESSOR": "Average",diff --git a/ui/app/shared/locales/en/or.json b/ui/app/shared/locales/en/or.jsonindex 605ad4e2e..a959a1784 100644--- a/ui/app/shared/locales/en/or.json+++ b/ui/app/shared/locales/en/or.json@@ -195,8 +195,8 @@"EQUALS_COMPARATOR": "Equals","GREATER_THAN": "Greater than","LESS_THAN": "Less than",- "READ_ATTRIBUTE": "Read attribute",- "WRITE_ATTRIBUTE": "Write attribute",+ "READ_ATTRIBUTE": "Attribute value",+ "WRITE_ATTRIBUTE": "Attribute value","BOOLEAN_INPUT": "Boolean","NUMBER_INPUT": "Number","TEXT_INPUT": "Text",@@ -212,9 +212,9 @@"TEXT_SWITCH": "Text switch","ROUND_NODE": "Round","LOG_OUTPUT": "Write to Logs",- "DERIVATIVE": "Read attribute derivative",- "INTEGRAL": "Read attribute integral",- "HISTORIC_VALUE": "Read attribute history",+ "DERIVATIVE": "Attribute derivative",+ "INTEGRAL": "Attribute integral",+ "HISTORIC_VALUE": "Attribute history","MAX_PROCESSOR": "Maximum","MIN_PROCESSOR": "Minimum","AVERAGE_PROCESSOR": "Average",diff --git a/ui/app/shared/locales/es/or.json b/ui/app/shared/locales/es/or.jsonindex 76c0fb4fc..c069584cd 100644--- a/ui/app/shared/locales/es/or.json+++ b/ui/app/shared/locales/es/or.json@@ -136,9 +136,9 @@"TEXT_SWITCH": "Interruptor de texto","ROUND_NODE": "Redondo","LOG_OUTPUT": "Write to Logs",- "DERIVATIVE": "Read attribute derivative",- "INTEGRAL": "Read attribute integral",- "HISTORIC_VALUE": "Read attribute history",+ "DERIVATIVE": "Attribute derivative",+ "INTEGRAL": "Attribute integral",+ "HISTORIC_VALUE": "Attribute history","MAX_PROCESSOR": "Maximum","MIN_PROCESSOR": "Minimum","AVERAGE_PROCESSOR": "Average",diff --git a/ui/app/shared/locales/fr/or.json b/ui/app/shared/locales/fr/or.jsonindex 78e04babb..e199dd897 100644--- a/ui/app/shared/locales/fr/or.json+++ b/ui/app/shared/locales/fr/or.json@@ -136,9 +136,9 @@"TEXT_SWITCH": "Commutateur de texte","ROUND_NODE": "Arrondir","LOG_OUTPUT": "Write to Logs",- "DERIVATIVE": "Read attribute derivative",- "INTEGRAL": "Read attribute integral",- "HISTORIC_VALUE": "Read attribute history",+ "DERIVATIVE": "Attribute derivative",+ "INTEGRAL": "Attribute integral",+ "HISTORIC_VALUE": "Attribute history","MAX_PROCESSOR": "Maximum","MIN_PROCESSOR": "Minimum","AVERAGE_PROCESSOR": "Average",diff --git a/ui/app/shared/locales/it/or.json b/ui/app/shared/locales/it/or.jsonindex 65e025d6f..508e08444 100644--- a/ui/app/shared/locales/it/or.json+++ b/ui/app/shared/locales/it/or.json@@ -135,9 +135,9 @@"TEXT_SWITCH": "Text switch","ROUND_NODE": "Rotondo","LOG_OUTPUT": "Write to Logs",- "DERIVATIVE": "Read attribute derivative",- "INTEGRAL": "Read attribute integral",- "HISTORIC_VALUE": "Read attribute history",+ "DERIVATIVE": "Attribute derivative",+ "INTEGRAL": "Attribute integral",+ "HISTORIC_VALUE": "Attribute history","MAX_PROCESSOR": "Maximum","MIN_PROCESSOR": "Minimum","AVERAGE_PROCESSOR": "Average",diff --git a/ui/app/shared/locales/nl/or.json b/ui/app/shared/locales/nl/or.jsonindex cc7da6d01..63a880605 100644--- a/ui/app/shared/locales/nl/or.json+++ b/ui/app/shared/locales/nl/or.json@@ -190,9 +190,9 @@"TEXT_SWITCH": "Tekst schakeling","ROUND_NODE": "Afronden","LOG_OUTPUT": "Write to Logs",- "DERIVATIVE": "Read attribute derivative",- "INTEGRAL": "Read attribute integral",- "HISTORIC_VALUE": "Read attribute history",+ "DERIVATIVE": "Attribute derivative",+ "INTEGRAL": "Attribute integral",+ "HISTORIC_VALUE": "Attribute history","MAX_PROCESSOR": "Maximum","MIN_PROCESSOR": "Minimum","AVERAGE_PROCESSOR": "Average",diff --git a/ui/app/shared/locales/pt/or.json b/ui/app/shared/locales/pt/or.jsonindex bee70d679..877e351f2 100644--- a/ui/app/shared/locales/pt/or.json+++ b/ui/app/shared/locales/pt/or.json@@ -135,9 +135,9 @@"TEXT_SWITCH": "Mudança de texto","ROUND_NODE": "Rodada","LOG_OUTPUT": "Write to Logs",- "DERIVATIVE": "Read attribute derivative",- "INTEGRAL": "Read attribute integral",- "HISTORIC_VALUE": "Read attribute history",+ "DERIVATIVE": "Attribute derivative",+ "INTEGRAL": "Attribute integral",+ "HISTORIC_VALUE": "Attribute history","MAX_PROCESSOR": "Maximum","MIN_PROCESSOR": "Minimum","AVERAGE_PROCESSOR": "Average",diff --git a/ui/app/shared/locales/ro/or.json b/ui/app/shared/locales/ro/or.jsonindex 25c67ebb8..155daacc6 100644--- a/ui/app/shared/locales/ro/or.json+++ b/ui/app/shared/locales/ro/or.json@@ -183,9 +183,9 @@"TEXT_SWITCH": "Comutator text","ROUND_NODE": "Rotunjește","LOG_OUTPUT": "Write to Logs",- "DERIVATIVE": "Read attribute derivative",- "INTEGRAL": "Read attribute integral",- "HISTORIC_VALUE": "Read attribute history",+ "DERIVATIVE": "Attribute derivative",+ "INTEGRAL": "Attribute integral",+ "HISTORIC_VALUE": "Attribute history","MAX_PROCESSOR": "Maximum","MIN_PROCESSOR": "Minimum","AVERAGE_PROCESSOR": "Average",diff --git a/ui/app/shared/locales/uk/or.json b/ui/app/shared/locales/uk/or.jsonindex bed8169e6..a2ede388a 100644--- a/ui/app/shared/locales/uk/or.json+++ b/ui/app/shared/locales/uk/or.json@@ -188,9 +188,9 @@"TEXT_SWITCH": "Текстовий перемикач","ROUND_NODE": "Коло","LOG_OUTPUT": "Write to Logs",- "DERIVATIVE": "Read attribute derivative",- "INTEGRAL": "Read attribute integral",- "HISTORIC_VALUE": "Read attribute history",+ "DERIVATIVE": "Attribute derivative",+ "INTEGRAL": "Attribute integral",+ "HISTORIC_VALUE": "Attribute history","MAX_PROCESSOR": "Maximum","MIN_PROCESSOR": "Minimum","AVERAGE_PROCESSOR": "Average",