Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

map

Applies an ordered list of JSONLogic expressions, writing each result to a dotted path in the context. The primary tool for reshaping, computing, and enriching data.

Synopsis

{
  "name": "map",
  "input": {
    "mappings": []
  }
}

Description

map is an engine built-in from dataflow-rs. Orion declares no input schema for it, so a mistake in input surfaces when the task runs rather than when the workflow is saved.

Retry safety: pure. An engine built-in reads and writes the message and nothing else.

Fields

FieldTypeRequiredDefaultDescription
mappingsarrayyesOrdered list of { "path", "logic" } entries
mappings[].pathstringyesDotted target path, for example "data.order.total"
mappings[].logicJSONLogicyesExpression whose result is written to path

Examples

{
  "name": "map",
  "input": {
    "mappings": [
      { "path": "data.order.flagged", "logic": true },
      { "path": "data.order.total_with_tax", "logic": { "*": [{ "var": "data.order.total" }, 1.1] } }
    ]
  }
}

Last verified 14 September 2026