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/04/11 22:07:44 UTC
[incubator-streampipes-extensions] 03/05: Add icon and description
for transform to boolean
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
commit 05682ffd003e5bd3322a45a47d606da6c09cba90
Author: Philipp Zehnder <ze...@fzi.de>
AuthorDate: Sat Apr 11 23:42:12 2020 +0200
Add icon and description for transform to boolean
---
.../TransformToBooleanController.java | 2 +-
.../documentation.md | 17 +++++++----------
2 files changed, 8 insertions(+), 11 deletions(-)
diff --git a/streampipes-processors-transformation-jvm/src/main/java/org/apache/streampipes/processors/transformation/jvm/processor/transformtoboolean/TransformToBooleanController.java b/streampipes-processors-transformation-jvm/src/main/java/org/apache/streampipes/processors/transformation/jvm/processor/transformtoboolean/TransformToBooleanController.java
index 3967f96..94f4705 100644
--- a/streampipes-processors-transformation-jvm/src/main/java/org/apache/streampipes/processors/transformation/jvm/processor/transformtoboolean/TransformToBooleanController.java
+++ b/streampipes-processors-transformation-jvm/src/main/java/org/apache/streampipes/processors/transformation/jvm/processor/transformtoboolean/TransformToBooleanController.java
@@ -48,7 +48,7 @@ public class TransformToBooleanController
public DataProcessorDescription declareModel() {
return ProcessingElementBuilder.create("org.apache.streampipes.processors.transformation.jvm.transform-to-boolean")
.withLocales(Locales.EN)
- .withAssets(Assets.DOCUMENTATION)
+ .withAssets(Assets.DOCUMENTATION, Assets.ICON)
.requiredStream(StreamRequirementsBuilder.create()
.requiredPropertyWithNaryMapping(
EpRequirements.anyProperty(), // anyProperty? Would be nice, to exclude
diff --git a/streampipes-processors-transformation-jvm/src/main/resources/org.apache.streampipes.processors.transformation.jvm.transform-to-boolean/documentation.md b/streampipes-processors-transformation-jvm/src/main/resources/org.apache.streampipes.processors.transformation.jvm.transform-to-boolean/documentation.md
index a6a5268..50c7441 100644
--- a/streampipes-processors-transformation-jvm/src/main/resources/org.apache.streampipes.processors.transformation.jvm.transform-to-boolean/documentation.md
+++ b/streampipes-processors-transformation-jvm/src/main/resources/org.apache.streampipes.processors.transformation.jvm.transform-to-boolean/documentation.md
@@ -1,4 +1,4 @@
-## Value Changed
+## Transform to Boolean
<p align="center">
<img src="icon.png" width="150px;" class="pe-image-documentation"/>
@@ -7,23 +7,20 @@
***
## Description
+This processors transforms numbers and strings to boolean values.
-This processor inverts a specific boolean
***
## Required input
-
+A string with the values "true", "True", "false", "False" or a number with value 1.0, 1, 0, or 0.0
***
## Configuration
-Describe the configuration parameters here
-
-### 1st parameter
-
-
-### 2nd parameter
+Select fields that should be converted to boolean.
-## Output
\ No newline at end of file
+## Output
+Selected properties of input events are transformed to booleans.
+When the value is not valid an error message is logged and the event is discarde.
\ No newline at end of file