Example models

A motor insurer

Where the simple bank is for reading, this model is for running. Its five use cases create the model’s three entities (clients, policies, each naming its drivers, and claims), which an execution environment keeps, checking every pre- and post-condition against them as it runs. processClaim is the one to read closely: it waits for the client’s documents against a deadline, screens and prices the claim, and then declines it or has it assessed, paid and the vehicle repaired. The assessment has three days, and a claim not assessed in time is reported as overdue.

Who answers each lower-level service is a matter of configuration, and hence the same model runs with people, stubs, compiled services or external systems behind them. It ships without a defect, so it can be taken to execution as it is. If one removes one invariant of its requests, a test run finds the defect which lets a claim pay past its cover.

Scope View

Entity Views

Functional Requirements Views

URDAD Functional Requirements View of onboardClient, showing Client; identity not yet registered; login not yet registered; Insurer; client onboarded.
Functional Requirements View: onboardClientFull size: Functional Requirements View: onboardClient
URDAD Functional Requirements View of purchaseMotorInsurance, showing Client; applicant is a client; vehicle not already insured; cover does not start in the past; value is positive; Insurer; Underwriting; policy issued to the client; terms reported.
Functional Requirements View: purchaseMotorInsuranceFull size: Functional Requirements View: purchaseMotorInsurance
URDAD Functional Requirements View of processClaim, showing Client; requested by the policy owner; policy in force at the incident; incident has happened; reported in time; Insurer; claim recorded against the policy; outcome recorded; payout within cover; settled or declined; payout not negative.
Functional Requirements View: processClaimFull size: Functional Requirements View: processClaim
URDAD Functional Requirements View of provideClaimsReport, showing Client; requested by the policy owner; policy exists; period is valid; Insurer; every claim in the period; only claims in the period.
Functional Requirements View: provideClaimsReportFull size: Functional Requirements View: provideClaimsReport
URDAD Functional Requirements View of assessAndSettleClaim, showing claim exists; assessed in time; excess not negative; sum insured not negative; Claims; Client; Insurer; processClaim; claim settled; settlement reported; payout within cover; payout not negative.
Functional Requirements View: assessAndSettleClaimFull size: Functional Requirements View: assessAndSettleClaim

Responsibility Allocation View

URDAD Responsibility Allocation View of processClaim, showing policy in force at the incident; requested by the policy owner; incident has happened; reported in time; recordClaim; Refer to an investigator?; claim recorded against the policy; outcome recorded; payout within cover.
Responsibility Allocation View: processClaimFull size: Responsibility Allocation View: processClaim

Process Views

URDAD Process View of processClaim, showing Start; recordClaim; Resp: Report the claim number; on; merge; updateClaim; screenClaim; ∀ item ∈ request.damagedItems → repairTotal — while repairTotal <= recorded.vehicleValue; priceDamagedItem; Def: writtenOff = repairTotal > recorded.vehicleValue; if; assessAndSettleClaim; Resp: Report the settlement; Resp: Report the decline; Resp: Report the overdue assessment; investigateClaim; raise PolicyInForceAtTheIncidentViolation exception and abort; raise RequestedByThePolicyOwnerViolation exception and abort; raise IncidentHasHappenedViolation exception and abort; raise ReportedInTimeViolation exception and abort; End.
Process View: processClaimFull size: Process View: processClaim
URDAD Process View of assessAndSettleClaim, showing Start; Until the assessment is complete, max 5 — while not complete; assessClaim; raise AssessedInTimeViolation exception and abort; if; merge; provideFurtherInformation; computePayout; updateClaim; raise ClaimExistsViolation exception and abort; payClaim; offerRepair; repairVehicle; Resp: Report the payout; End.
Process View: assessAndSettleClaimFull size: Process View: assessAndSettleClaim
URDAD Process View of payClaim, showing Start; if; merge; makePayment; Resp: Report the payment; authorisePayment; Resp: Report the authorised payment; End.
Process View: payClaimFull size: Process View: payClaim
URDAD Process View of purchaseMotorInsurance, showing Start; findClientByLogin; quotePremium; issuePolicy; Resp: Report the policy; raise VehicleNotAlreadyInsuredViolation exception and abort; raise CoverDoesNotStartInThePastViolation exception and abort; raise ApplicantIsAClientViolation exception and abort; End.
Process View: purchaseMotorInsuranceFull size: Process View: purchaseMotorInsurance
URDAD Process View of provideClaimsReport, showing Start; findClaims; Resp: Report the claims; raise PolicyExistsViolation exception and abort; raise RequestedByThePolicyOwnerViolation exception and abort; End.
Process View: provideClaimsReportFull size: Process View: provideClaimsReport

Dependencies View

URDAD Dependencies View of Claims, showing Assessment; assessClaim; priceDamagedItem; provideFurtherInformation; FraudInvestigation; investigateClaim; screenClaim; Payments; computePayout; payClaim; RepairNetwork; offerRepair; repairVehicle.
Dependencies View: ClaimsFull size: Dependencies View: Claims

Process View, requests expanded

URDAD Process View, requests expanded of processClaim, showing Start; recordClaim; Resp: Report the claim number; on; merge; updateClaim; screenClaim; ∀ item ∈ request.damagedItems → repairTotal — while repairTotal <= recorded.vehicleValue; priceDamagedItem; Def: writtenOff = repairTotal > recorded.vehicleValue; if; assessAndSettleClaim — assessAndSettleClaim; Until the assessment is complete, max 5 — while not complete; assessClaim; raise AssessedInTimeViolation exception and abort; provideFurtherInformation; computePayout; raise ClaimExistsViolation exception and abort; payClaim; offerRepair; repairVehicle; Resp: Report the payout; End; Resp: Report the settlement; Resp: Report the decline; Resp: Report the overdue assessment; investigateClaim; raise PolicyInForceAtTheIncidentViolation exception and abort; raise RequestedByThePolicyOwnerViolation exception and abort; raise IncidentHasHappenedViolation exception and abort; raise ReportedInTimeViolation exception and abort.
Process View, requests expanded: processClaimFull size: Process View, requests expanded: processClaim

Entity Usage View

URDAD Entity Usage View of Claim, showing findClaims; findStaleClaims; noteClaimReview; processClaim; recordClaim; updateClaim.
Entity Usage View: ClaimFull size: Entity Usage View: Claim