State Machine API

Reference for authoring and hosting portable snapshot state machines. The concepts are on State machines; the walkthroughs are Authoring a machine and Declarative authoring.

Trax.StateMachine

  • Rules: the string-free vocabulary for declarative guards and reducers.
  • Declarative data model: Rule, Reduction, ContextSchema, DeclarativeModel and the engine definition.
  • IR format: the exported machine.ir.json.
  • Migrations: MigrateFrom and forward-migrating stored drafts.
  • Result codes: the typed outcomes of advance, rehydrate and the draft operations.
  • IrMachine: the engine built from a machine's IR, for a client that holds only the manifest.

Trax.StateMachine.Persistence

Trax.StateMachine.Testing

Trax.StateMachine.Client

  • .NET client: driving a served machine from Blazor, MAUI or another .NET service.

@traxsharp/state-machine (npm)