Skip to content

SIM — Samples

These are the samples for the SIM — System Integration guide. See also Short info and the tutorial.

Booking asks Inventory to reserve 1 seat using request identifier hold-17.

  1. Distinguish a reservation request from a read-only availability query.
  2. Name the success outcome and the capacity-refusal outcome.
  3. Add the explanation that the caller may time out before seeing a successful response.
  4. Ask how retrying hold-17 avoids allocating a second seat.

The useful result is an explicit contract question and its agreed answer. A fixture-based integration test must show the chosen duplicate-handling behavior before it can be treated as a runtime guarantee.

For a concrete model file, download the travel-booking checkpoint and follow the travel-booking tutorial. The checkpoint is cumulative and may contain earlier model stages.

These four exercises are lesson briefs. Their dedicated CtxBazaar recipes and browser launch actions are planned; see Learning with models for available downloads and the meaning of each result.

Exercise Try this Expected observation
Booking calls availability Connect Booking and Inventory with an availability contract. Identify the provider, consumer and shared meaning of available seats.
Confirmation event Describe Booking publishing a confirmation consumed by Notifications. Distinguish a published fact from a synchronous request.
External payment boundary Add an external payment participant and describe its timeout assumption. Find the boundary where the application must handle an uncertain result.
Contract change Compare two versions of an interaction after removing a required field. Identify the affected consumer and discuss compatibility before changing the provider.