Docs

Engine Primitives

Engine Primitives are pre-built, security-vetted building blocks you attach to your Yoke's transitions, states, and fields. Each one is a small, composable unit of "engine" logic that you configure via the Yoke Studio without writing any code.

Pick a primitive below to learn how to use it:

PrimitiveWhat it doesTier
AggregatorRoll up child records into a parent field — sum, count, average.Every plan
NotifierSend email or webhook on transitions, state changes, or field updates.Free (email) / Pay-as-you-go (webhook)
SchedulerRun transitions or other primitives on a cron schedule.Pay-as-you-go
SLA TimerEscalate stuck jobs after a fixed duration.Pay-as-you-go
PDF GeneratorRender PDFs from typst templates on transitions.Pay-as-you-go
Approval GateBlock transitions behind N-of-M approver votes.Pay-as-you-go
Field ComputeCompute virtual fields at read time using formulas.Every plan
Field MutatorAtomically increment, decrement, or set a field — with bounds.Every plan
Record SpawnerCreate entity records as a side effect of events.Pay-as-you-go
Cross-Entity TransitionFire an FSM event on a related entity's job.Pay-as-you-go

Trigger predicates

Every primitive that fires on entity changes can use an optional trigger predicate to filter exactly when it runs — fire on a boolean edge, on a threshold crossing, or only when a specific value appears.