Overview
| Name | Basic Pipelet |
|---|---|
| Vendor | eccenca |
| Authors | |
| Homepage | |
| Issue Management | http://support.eccenca.com/jira/browse/... |
| Continuous Integration | n/a |
| Categories | Pipelet |
| Most Recent Version (see older versions) | Version 1.0 |
| Availability (see older versions) | eccenca / SMILA... |
| State | Stable |
| Support | |
| License | Freeware eccenca Component License |
| Price | Free |
| Release Docs | http://wiki.eccenca.com/... |
| Java API Docs | n/a |
| Download Source | |
| Download JAR |
Description/Features
TextFingerpritnPipelet
Example of using TextFingerpritnPipelet is covered in How to use TextFingerprint pipelet
StringUtilsPipelet
StringUtilsPipelet is a multi-action conversion pipelet which means that
- it's configured like any other conversion pipelets
- it also has a mandatory ConversionAction configuration property
The available ConversionAction options are:
- TruncateAtString - truncates a string at a point of first occurence of a substring configured
- SubString - extracts a substing from a string given using configured start and and indexes
- ToLowerCase - converts the string to a lower case
Additional conversion configuration parameters
TruncateAtString
| Name | Type | Value | Constraint | Description |
|---|---|---|---|---|
| SearchString | String | - | - | The substring to truncate the source string at |
SubString
| Name | Type | Value | Constraint | Description |
|---|---|---|---|---|
| StartIndex | Integer | Character index | - | The substring start character index |
| EndIndex | Integer | Character index | - | The substring end character index |
ToLowerCase
None
Examples
TruncateAtString usage example
This invocation configuration will overwrite the "Hello World and Java" string to "Hello World " in "Content" attachment:
<extensionActivity name="invokeStringUtilsPipelet"> <proc:invokePipelet> <proc:pipelet class="com.eccenca.pipelets.basic.StringUtilsPipelet" /> <proc:variables input="request" /> <proc:PipeletConfiguration> <proc:Property name="SourceType"> <proc:Value>ATTACHMENT</proc:Value> </proc:Property> <proc:Property name="Source"> <proc:Value>Text</proc:Value> </proc:Property> <proc:Property name="TargetType"> <proc:Value>ATTACHMENT</proc:Value> </proc:Property> <proc:Property name="TargetStoragePolicy"> <proc:Value>OVERWRITE</proc:Value> </proc:Property> <proc:Property name="ConversionAction"> <proc:Value>TruncateAtString</proc:Value> </proc:Property> <proc:Property name="SearchString"> <proc:Value>and</proc:Value> </proc:Property> </proc:PipeletConfiguration> </proc:invokePipelet> </extensionActivity>
SubString usage example
This invocation configuration will overwrite the "Hello World" string with "Hello" in "Content" attachment:
<extensionActivity name="invokeStringUtilsPipelet"> <proc:invokePipelet> <proc:pipelet class="com.eccenca.pipelets.basic.StringUtilsPipelet" /> <proc:variables input="request" /> <proc:PipeletConfiguration> <proc:Property name="SourceType"> <proc:Value>ATTACHMENT</proc:Value> </proc:Property> <proc:Property name="Source"> <proc:Value>Text</proc:Value> </proc:Property> <proc:Property name="TargetType"> <proc:Value>ATTACHMENT</proc:Value> </proc:Property> <proc:Property name="TargetStoragePolicy"> <proc:Value>OVERWRITE</proc:Value> </proc:Property> <proc:Property name="ConversionAction"> <proc:Value>SubString</proc:Value> </proc:Property> <proc:Property name="StartIndex" type="java.lang.Integer"> <proc:Value>0</proc:Value> </proc:Property> <proc:Property name="EndIndex" type="java.lang.Integer"> <proc:Value>5</proc:Value> </proc:Property> </proc:PipeletConfiguration> </proc:invokePipelet> </extensionActivity>
ToLowerCase usage example
This invocation configuration will overwrite the "Hello World" string with "hello world" in "Content" attachment:
<extensionActivity name="invokeStringUtilsPipelet"> <proc:invokePipelet> <proc:pipelet class="com.eccenca.pipelets.basic.StringUtilsPipelet" /> <proc:variables input="request" /> <proc:PipeletConfiguration> <proc:Property name="SourceType"> <proc:Value>ATTACHMENT</proc:Value> </proc:Property> <proc:Property name="Source"> <proc:Value>Text</proc:Value> </proc:Property> <proc:Property name="TargetType"> <proc:Value>ATTACHMENT</proc:Value> </proc:Property> <proc:Property name="TargetStoragePolicy"> <proc:Value>OVERWRITE</proc:Value> </proc:Property> <proc:Property name="ConversionAction"> <proc:Value>ToLowerCase</proc:Value> </proc:Property> </proc:PipeletConfiguration> </proc:invokePipelet> </extensionActivity>
Link to support.eccenca.com
Frequently Asked Questions about this extension.
