Skip to content

Workflows

Workflows automate business behavior in Brezel systems. They are JSON-defined graphs that connect an event to small, composable elements: loading data, changing resources, asking the user for input, sending responses, enforcing access rules, or starting background jobs.

Use workflows when a process has more than one step, needs to react to a system event, or must coordinate UI, data, and external services. Keep the workflow focused on one business outcome. If the logic is only a calculated field value, use a recipe instead. If the behavior belongs to a reusable UI or backend extension, use a module, widget, or custom element.

Workflows are a good fit for:

  • Creating or updating resources in response to a button, form change, save event, or schedule.
  • Asking the user for structured input with a modal, then saving the confirmed result.
  • Returning calculated data to a dashboard or field event.
  • Running long jobs asynchronously and reporting progress.
  • Applying policy filters for role-aware access.
  • Exporting files, rendering documents, sending mail, or calling external APIs.

Avoid workflows for:

  • Pure display logic that can live in a layout.
  • Single-field calculations that are easier to express as recipes.
  • Large custom integrations that need a dedicated service boundary.
  • Hidden side effects in validation flows where users expect only a check.

Start with the Workflow Overview to learn the file shape, graph model, ports, and sync/async rules.

Then follow the authoring process and the Build features guides for complete, tested examples.

For specific topics, continue with:

For element details, use the reference pages: