You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by ze...@apache.org on 2020/09/15 07:40:08 UTC

[incubator-streampipes-extensions] branch dev updated: Fix string.en in label buffer processor

This is an automated email from the ASF dual-hosted git repository.

zehnder pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-streampipes-extensions.git


The following commit(s) were added to refs/heads/dev by this push:
     new 6311c36  Fix string.en in label buffer processor
6311c36 is described below

commit 6311c36042f423b95713e33ff87ac2057d856792
Author: Philipp Zehnder <ze...@fzi.de>
AuthorDate: Tue Sep 15 09:39:13 2020 +0200

    Fix string.en in label buffer processor
---
 .../jvm/processor/state/labeler/model/StatementUtils.java      |  2 +-
 .../strings.en                                                 | 10 ++++++++--
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/streampipes-processors-transformation-jvm/src/main/java/org/apache/streampipes/processors/transformation/jvm/processor/state/labeler/model/StatementUtils.java b/streampipes-processors-transformation-jvm/src/main/java/org/apache/streampipes/processors/transformation/jvm/processor/state/labeler/model/StatementUtils.java
index d41749c..32b86d6 100644
--- a/streampipes-processors-transformation-jvm/src/main/java/org/apache/streampipes/processors/transformation/jvm/processor/state/labeler/model/StatementUtils.java
+++ b/streampipes-processors-transformation-jvm/src/main/java/org/apache/streampipes/processors/transformation/jvm/processor/state/labeler/model/StatementUtils.java
@@ -123,7 +123,7 @@ public class StatementUtils {
         if (">".equals(statement.getOperator())) {
             return calculatedValue > statement.getValue();
         } else if (">=".equals(statement.getOperator())) {
-            return calculatedValue < statement.getValue();
+            return calculatedValue >= statement.getValue();
         } else if ("<=".equals(statement.getOperator())) {
             return calculatedValue <= statement.getValue();
         } else if ("<".equals(statement.getOperator())) {
diff --git a/streampipes-processors-transformation-jvm/src/main/resources/org.apache.streampipes.processors.transformation.jvm.processor.state.labeler.buffer/strings.en b/streampipes-processors-transformation-jvm/src/main/resources/org.apache.streampipes.processors.transformation.jvm.processor.state.labeler.buffer/strings.en
index 62ac488..1b3d794 100644
--- a/streampipes-processors-transformation-jvm/src/main/resources/org.apache.streampipes.processors.transformation.jvm.processor.state.labeler.buffer/strings.en
+++ b/streampipes-processors-transformation-jvm/src/main/resources/org.apache.streampipes.processors.transformation.jvm.processor.state.labeler.buffer/strings.en
@@ -19,5 +19,11 @@ labelCollectionId.description=Add a condition with the following scheme (Order i
 label.title=Label
 label.description=User defined label for data
 
-labelStringId.title=Condition
-labelStringId.description=Add a condition with the following scheme (Order is important) '<;5;ok', '<;10;ok' or '*;nok' as a default label
+labelStringId.title=Label Value
+labelStringId.description=Provide the label value to be added to the event
+
+comparatorId.title=Comparator
+comparatorId.description=Select a comparator
+
+numberValueId.title=Numerical Value
+numberValueId.description=Specify the numerical value for the condition