Flow Grouping
Use breyta flows update to manage mutable flow metadata for grouped flows, including groupKey, groupName, groupDescription, and explicit groupOrder.
Quick Answer
Use this loop when related flows should render in a deliberate sequence:
- Inspect current grouping metadata with
breyta flows list --prettyorbreyta flows show <slug> --pretty - Set or change grouping metadata with
breyta flows update <slug> ... - Verify sibling order with
breyta flows show <slug> --pretty
Use breyta help flows update for exact flag truth.
What Lives In Group Metadata
Flow grouping is mutable workspace metadata. It does not round-trip through breyta flows pull / breyta flows push source files.
That means:
- use the pulled
.cljfile for authored flow logic - use
breyta flows updatefor grouping changes - verify grouped siblings through
flows list --pretty/flows show --pretty
Set Or Update A Group
Create or update grouping metadata on a flow:
breyta flows update invoice-start \
--group-key invoice-pipeline \
--group-name "Invoice Pipeline" \
--group-description "Flows that run in sequence for invoice processing"
Rules:
groupNameis required whenevergroupKeyis setgroupKeyis the stable identifier for the groupgroupDescriptionis optional, but use one shared description across siblings when possible
Set Explicit Group Order
Use groupOrder when grouped flows should render in execution order:
breyta flows update invoice-start --group-order 10
breyta flows update invoice-validate --group-order 20
breyta flows update invoice-approve --group-order 30
Ordering rules:
- lower
groupOrdervalues sort first - use spaced values like
10,20,30so future insertions are easy flows show <slug> --prettyreturns siblinggroupFlowsordered by explicitgroupOrderwhen present
Verify Grouping
Use these read paths after any grouping change:
breyta flows list --pretty
breyta flows show invoice-start --pretty
breyta help flows update
Look for:
groupKeygroupNamegroupDescriptiongroupOrdergroupFlows
Clear Order Or Clear The Whole Group
Clear only the explicit order:
breyta flows update invoice-approve --group-order ""
Clear the entire group membership from a flow:
breyta flows update invoice-approve --group-key ""