Transform Reference Overview
Every transform type Zetect supports, grouped by what it works on. Each type has its options, their defaults and an example of input and output. The table below lists all 17 types.
- Reshape text. Change case, trim, replace, join, split and match regular expressions.
- Calculate. Add, subtract, multiply, divide and take remainders.
- Work with dates. Reformat dates, shift them, convert raw timestamps and get today's date.
- Decide. Map values through a table, pick the first matching rule, or choose between two branches.
- Compose. Return fixed values, generate unique identifiers and chain steps in a pipeline.
Before you begin
- Read Using Transforms for the shape of a transform and how to add one to a mapping.
- Read Chaining Transforms for how
inputand the previous step's result interact.
Key concepts
- type
- Required on every transform. Not case-sensitive.
- input
- The value a type works on. If it is left out inside a pipeline, the previous step's result is used. Outside a pipeline, leaving it out means there is no input.
- Tokens
- Every text option, including
input, can contain${name}tokens. A token for a missing attribute becomes empty text. - No value
- What a type returns when it has nothing to work on or can't run. A blank or missing final result is not sent.
Quick reference
| Type | Category | What it does |
|---|---|---|
| uppercase | String | Converts the input to upper case. |
| lowercase | String | Converts the input to lower case. |
| trim | String | Removes spaces from both ends of the input. |
| replace | String | Replaces every occurrence of literal text. |
| concat | String | Joins a list of values in order. |
| split | String | Splits the input on a delimiter and returns one part. |
| regex | String | Extracts a capture group, or replaces every match of a regular expression. |
| math | Numeric | Adds, subtracts, multiplies, divides or takes the remainder of two numbers. |
| date-format | Date | Reads a date or raw timestamp and writes it in another format. |
| date-add | Date | Adds days, months and years to a date. |
| current-date | Date | Returns the current date and time. |
| lookup | Logic | Maps the input to a value from a table, with a default. |
| decision | Logic | Returns the result of the first rule whose attribute conditions all match. |
| if | Logic | Returns one of two values or transforms depending on attribute conditions. |
| static | Utility | Returns a fixed value. |
| uuid | Utility | Returns a new random unique identifier. |
| pipeline | Utility | Runs steps in order, passing each result to the next. |
