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

filter

Evaluates a JSONLogic condition. If it is truthy the pipeline continues; otherwise the on_reject action is taken.

Synopsis

{
  "name": "filter",
  "input": {
    "condition": {
      ">": [
        {
          "var": "data.order.total"
        },
        0
      ]
    },
    "on_reject": "halt"
  }
}

Description

filter 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
conditionJSONLogicyesEvaluated against the data context
on_rejectstringno"halt""halt" stops the whole workflow; "skip" skips only this task

Examples

{
  "name": "filter",
  "input": {
    "condition": { ">": [{ "var": "data.order.total" }, 0] },
    "on_reject": "halt"
  }
}

Last verified 14 September 2026