Table of contents
- Introduction
- Selecting Data
- Common Pattern
- Moving and Copying Data
Introduction
In Alumio, fields marked with a pattern info icon support dynamic data handling using patterns. Patterns allow
you to work with flexible data structures by matching multiple paths. These fields let you use dot-notation paths
(like customer.name or orders.*.id) to select, move, or delete data.
Selecting Data
Patterns can be used to select data. By using special symbols like wildcards, you can match specific values,
entire sections of nested data, or multiple items at once—without needing to list each path individually.
Common Pattern
| Symbol | Description | Example |
|---|---|---|
. |
Separates levels in the data | customer.name = "John" |
* |
Matches any value at that level | orders.*.id = matches all order IDs |
? |
Matches a single character | product.?d = product.id, product.ad |
[abc] |
Matches one of several characters | status.[ao]k = status.ok, status.ak |
Moving and Copying Data
Patterns can also be used to move or copy data. In some forms (such as the Move using a pattern transformer), you may
be asked to enter:
- A source pattern (where the data comes from)
- A destination pattern (where the data should go)
You can use patterns with wildcard and placeholders to move or copy multiple pieces of data at once.
Patterns may include wildcards like * to match any value at that level. If you use multiple wildcards, you can
refer back to each one in the destination using numbered placeholders:
$1matches the first*$2matches the second*, and so on
Example
Source pattern:
categories.*
Destination pattern:
archived_categories.$1
What it does:
Moves all categories (like categories.shoes, categories.hats, etc.) into
archived_categories.shoes, archived_categories.hats, and so on.
Note:
$1refers to whatever matched the*in the source pattern.