Transform list

Use Transform list (rollout.map) to reshape a list without a code step. Choose a source list, then add ordered operations. Expressions use the workflow expression language with item and zero-based index in scope. Extra wired inputs are under inputs.

Operations

Operation What it does
Set fields Builds a new object or patches each item with fixed or expression values
Filter / Sort Keeps matching items or orders them by an expression
Distinct Keeps the first item for each evaluated key
Limit / Offset Takes the first n items or skips the first n items
Group Emits stable {key, items, count} rows, with an optional custom items field and metrics
Expand Evaluates a list per item and emits one parent row per element under the chosen field
Aggregate Computes count, sum, min, max, mean, collect, join, first or last metrics
Select / Discard Keeps or removes named object fields
Join Matches a wired list by scalar or composite keys
Match rules Applies runtime-authored conditions and field expressions to each item

Operations run from top to bottom. Disabled operations stay in the pipeline and don't change the list. Distinct and Group keep the order in which keys first appear.

Add input wires in more data, which the pipeline reads as inputs.name.

Limits

The source list is capped at 10,000 rows, and the step checks that before any operation runs. A larger list fails with "source rows exceed the map operation limit (10000)", and a Limit or Filter operation doesn't get around it. Split the list into smaller batches first.

The same 10,000 bound applies to the work inside a step: Expand and Join reject oversized operands and fail before allocating a larger result, and Match rules use it for potential rule evaluations.

Set fields

Rules run from top to bottom, and item in a rule is the item as the rules above it left it. A rule can read a field an earlier rule in the same step set: after total is set to item.price * item.qty, a later rule can use item.total > 100. A field no rule above wrote still reads the incoming value, and a field an earlier rule removed reads null.

From empty outputs only the fields the rules set. Patch item outputs the incoming item with the rules applied. A rule that copies the whole item also copies the fields set above it, so put it first to copy the item unchanged. When the list holds plain values such as strings or numbers, item stays that value in every rule.

Joining lists

Join keys can be one expression, such as item.customer_id, or a JSON array of expressions, such as ["item.workspace_id", "item.customer_id"]. A key containing null doesn't match.

  • Left keeps every left item and writes null for an unmatched join.
  • Inner keeps only matched items.
  • Anti keeps only unmatched left items and doesn't add the join field.
  • Semi keeps matched left items once and doesn't add the join field.
  • First match uses the first right item for a key. All matches emits one row for every pair.

The with expression must evaluate to a list. A wrong-shaped dynamic value fails the step. When the left input item is a scalar, joined output keeps it under row and places the matched item under the configured join field.

Aggregate rows

Aggregate normally leaves the working list unchanged and publishes each metric as a named output. Choose Rows to replace the working list instead. With a group expression, each output row contains the group key and its metrics. If the key expression returns an object, its fields are merged into the row, and a metric name that collides with one of those fields fails the step. Without a group expression, Aggregate emits one metric row.

Rules as data

Match rules are read from an expression such as inputs.rules. It must return a list shaped like this:

[
  {
    "when": "item.score >= 80",
    "set": {
      "grade": "\"pass\"",
      "review.priority": "item.score >= 95"
    }
  }
]

The when value and every value in set are expression strings. Rollout compiles them once for the operation and fails the step if any expression is invalid. First match stops after the first matching rule, and All matches applies matching rules in order.