Example models

An online auctioneer

Members register, list items and bid. Each auction closes at the closing time its seller chose. The highest bidder pays, the seller is paid less the platform’s service fee, the item is shipped and the buyer rates the sale.

The model shows how far delegation carries a specification. Its use cases state their requirements in prose, as a client would, and each requirement is met by the lower-level service the process requests. Thus the formal URDAD-OCL is written once, on the services which keep the members, the listings and the sales, and the method’s progress report confirms that every use-case condition is met by delegation.

The model verifies with no errors even at the executable level, and its leaf services state their answers precisely enough for an execution environment to give them without any code. It keeps seven warnings, each with a written reason.

Scope View

URDAD Scope View of Auctioneer, showing Listings; Membership; Platform; Sales.
Scope View: AuctioneerFull size: Scope View: Auctioneer

Functional Requirements Views

URDAD Functional Requirements View of listItem, showing Member; closes in the future; may sell; amounts in euro; shipping cost is not negative; starting bid is positive; Auctioneer; auction closed at its closing time; item listed.
Functional Requirements View: listItemFull size: Functional Requirements View: listItem
URDAD Functional Requirements View of completeSale, showing highest bidder can buy; listing ready to close; Auctioneer; Listings; Member; listItem; auction closed; buyer kept informed; paid and paid out; sale completed; sold to the highest bidder.
Functional Requirements View: completeSaleFull size: Functional Requirements View: completeSale
URDAD Functional Requirements View of recordSale, showing listing closed; listing not yet sold; Auctioneer; Sales; completeSale; sale recorded; sale number format.
Functional Requirements View: recordSaleFull size: Functional Requirements View: recordSale

Responsibility Allocation Views

URDAD Responsibility Allocation View of listItem, showing closes in the future; may sell; Check: closes in the future; completeSale; getMember; recordListing; auction closed at its closing time; item listed.
Responsibility Allocation View: listItemFull size: Responsibility Allocation View: listItem
URDAD Responsibility Allocation View of completeSale, showing highest bidder can buy; listing ready to close; recordSale; Was it paid; closeListing; paySeller; Feedback window; sold to the highest bidder; buyer kept informed; auction closed; paid and paid out; sale completed.
Responsibility Allocation View: completeSaleFull size: Responsibility Allocation View: completeSale

Process Views

URDAD Process View of listItem, showing Start; Check: closes in the future; getMember; raise MaySellViolation exception and abort; recordListing; Resp: Report the listing number; on; merge; completeSale; End.
Process View: listItemFull size: Process View: listItem
URDAD Process View of completeSale, showing Start; closeListing; raise ListingReadyToCloseViolation exception and abort; if; merge; Resp: Report no sale; getServiceFee; computeSettlement; getMember; recordSale; raise HighestBidderCanBuyViolation exception and abort; collectPayment; paySeller; updateSale; sendReceipt; provideShippingDetails; sendTrackingDetails; Feedback window; confirmReceiptAndRate; Resp: Report the sale; End.
Process View: completeSaleFull size: Process View: completeSale
URDAD Process View of collectPayment, showing Start; Check: sale on record; payForItem; chargePayment; updateSale; Resp: Report the payment; Resp: Report no payment; Resp: Report overdue; End.
Process View: collectPaymentFull size: Process View: collectPayment

Entity View