Sign up
Log in
Specs
Spec topics: declarations and rules.
Tiles
List
New spec
Help
19
Documents
20
Specs
6
Stories
2
ai:skills
3
ai:specs
1
ai:todos
1
project log
1
Style topics
2
all
#shop
6
shop
A small online shop, Grindstone Coffee Gear, as a domain model: what it sells, who buys, their orders, and how orders get to them. Its sample data is in shop-samples; wha
spec · #shop · 21 classes
shop-carts
Two flows about carts. A new cart tells the shop who's shopping. Abandoned carts runs once a day (a cron, declared in Init): any cart still open after 48 hours is marked
spec · #shop
shop-notify
Every message the shop sends goes through this one rule. Here it keeps the message in the shop's outbox (a Message object, see shop), so the demo shows what would go out
spec · #shop
shop-orders
Order placed. When an order is created, the shop issues its invoice, reserves the stock for each line (from the first warehouse that has enough), checks whether that left
spec · #shop
shop-shipping
Shipped. When a shipment's status becomes shipped, its order is marked shipped and the customer gets the tracking number.
spec · #shop
shop-stock
Low stock. When a stock level drops below its reorder point, whoever runs the shop hears about it, with the supplier to call and how long they take to deliver. It runs wh
spec · #shop
Trash
: deleted topics, kept 30 days.