Ends With Filter dialog box
This filter checks if the input string ends with a specified suffix.
Option | Description |
---|---|
Field name | Enter the field name of the FRTN generated by the filter. |
Input | Enter a string to be tested. Commonly, RRT is used in this text box. |
Ends with | Enter the suffix. The filter generates an error if the Ends with parameter is an
empty string.
|
Match case | If this check box is selected, then the comparison is case-sensitive. Otherwise it is case-insensitive. |
Fail job if input/output is invalid | If this check box is selected, the component will reject the current job if either the input string or filter's result is empty. |
Result | This group of settings specifies the value of the generated RRT depending on the result of matching operation. |
On success | Specify a value for replacement of the generated RRT in case the input string ends with the specified value. You can select one from the predefined alternatives (TRUE, YES, ON, 1) from the drop-down list or enter any other value manually. The default value is TRUE. |
On failure | Specify a value for replacement of the generated RRT in case the input string doesn't end with the specified value. You can select one from the predefined alternatives (FALSE, NO, OFF, 0) from the drop-down list or enter any other value manually. The default value is FALSE. |
This filter generates the following Boolean RRTs that can be used in the Validate filter for metadata validation:
- ~DFT::%field name#IsSuccess%~ is replaced with TRUE if the filter operation ends with success. Otherwise, it is replaced with FALSE.
- ~DFT::%field name#IsFailure%~ is replaced with TRUE if the filter operation ends with failure. Otherwise, it is replaced with FALSE.
Result RRT:
~DFT::%field name%~ is replaced with the value configured as a success result if the input string ends with a specified substring, and is replaced with the value configured as a failure result.
The example of the filter usage:
Input: Is it a question?
Ends with: ?
Match case: unselected
On Success: TRUE
On Failure: FALSE
The generated RRT will be replaced with: TRUE.