Tutorials·Contracts track

Tutorials

Tutorial — Contracts track

Learn how documents come alive. Workflows, events, state transitions, and processing — where Blue stops being only a language and becomes a live interaction system.

If you are new, use the stepper first. Open the document stepper, run the Counter, and see how a request becomes a state change. Then come back here for the exact mechanics behind what you saw.

What this track covers

Blue documents become dynamic when contracts define how they react to events. This track explains:

  • how actions enter through channels
  • how rules match them
  • how workflows run
  • how state evolves over time
Contracts are how documents come alive. The language defines the shape; contracts define the behavior.

Read this after

Where the exact mechanics live

Each topic in this track is fully specified in Part II of the Blue Language Specification. Jump to the section that interests you:

What you will be able to do

After this track you will:

  • write documents that respond to events and participant actions
  • model sequential workflows with checkpoints
  • handle events from multiple participants and timelines
  • embed documents inside documents for rich composition