Skip to content

Lifecycle of a Service

The states a Service, each Order and each line move through, and who holds the next move in each.

A Service has three lifecycles: the product's, set by its Offers; each Order's, for the money; and its fulfillment, for the work. Each work state says who holds the next move.

The product

Product lifecycle: draft, selling, retiredFrom draft to selling: on Offer.publishedFrom selling to retired: on Offer.withdrawnFrom retired to selling: on Offer.publisheddraftsellingretired

The Service is draft until a published Offer sells it, and Offer.publish refuses an Offer whose promise its checks cannot back. It is retired when its last Offer is withdrawn, and every placed Order keeps the terms it was bought under.

The money

Order lifecycle: placed, paid, fulfilled, closed, canceled (ends), refunded (ends)From placed to paid: Order.payFrom placed to canceled: Order.cancelFrom paid to fulfilled: Order.fulfillFrom paid to closed: Order.confirmFrom paid to canceled: Order.cancelFrom paid to refunded: Order.refundFrom fulfilled to closed: Order.confirmFrom fulfilled to refunded: Order.refundFrom closed to refunded: Order.refundplacedpaidfulfilledclosedcanceledrefunded

Payment is authorized when the Order is placed or the Quote accepted, and captured line by line on Order.confirmed. A refund before that Event releases the authorization, so no revenue was counted.

The work

fulfillmentHolds whileNext moveMoved by
intakeThe inputs are checked against the briefThe buyer, when an input is missingOrder.start
workingThe steps run and their checkers grade themThe StartupOrder.deliver
deliveredThe acceptance window is openThe buyerOrder.confirm, Order.revise, Order.dispute
revisingA revised line is redone, its window pausedThe StartupOrder.deliver
acceptedThe line is confirmed and earnedNobodyNone
disputedThe remedy runs and the fee is heldThe StartupThe contract's remedy

The clock charges each delay to whoever holds the next move. Deadline clocks has the rule.

The work states live on the Order's fulfillment. A work Thing of its own, such as a catalog audit that callers watch apart from the commercial Order, has status planned.

Open, pause, close

A Service also opens to new Orders, pauses at capacity and closes. Service capacity has the Verbs, with status planned. Offer.withdraw stops new Orders, and every placed Order runs to its end.