Requirements
Which business rule protects the collection route, and how is the agreed limit tested?
The case boundary defines the business rules and measurable targets. The central invariant for collection route T-38 is that each confirmed emptying takes effect once for the same bin and route work order. Completing a route requires documented handover status and resolved discrepancies. An invariant must hold after every completed operation. Quality targets describe measurable operational behaviour.
Starting point Emptying and handover have separate records.
Assumptions for the example case
Original fictional example design. A municipal collection service for non-hazardous waste uses its own operational records and confirmed handovers. The illustrative load limit is 10000 kg; additional planned loading is allowed only if total mass remains ≤ 10000 kg. All figures and test targets are illustrative assumptions.
Business guarantee and measurable limit
Guarantee and preconditions
Each emptying takes effect once per bin and route. Completion requires a handover record and resolved discrepancies.
Business requirements (functional)
Further reading
- Durable commitment
- Each confirmed emptying takes effect once for the same bin and route work order. Completing a route requires documented handover status and resolved discrepancies.
- Evidence and closure
- Records officers confirm the complete chain of evidence and the resolution of discrepancies.
- Domain boundary rule
- The illustrative load limit is 10000 kg; additional planned loading is allowed only if total mass remains ≤ 10000 kg.
Operational goals (non-functional)
Further reading
- Local processing
- Illustrative target: 95% of local commands complete in under 800 milliseconds during a 15-minute profile at 100 commands/s. External processing and human waiting time are measured separately.
- Traceable processing
- The test profile records the authoritative version and the processing delay of device synchronisation. After a restart, every accepted change to collection route T-38 must be traceable through its stored result.
Planned mass and actual accepted mass remain separate
Planned mass and actual accepted mass remain separate.
Each confirmed emptying takes effect once for the same bin and route work order. Completing a route requires documented handover status and resolved discrepancies.
The illustrative load limit is 10000 kg; additional planned loading is allowed only if total mass remains ≤ 10000 kg. The exercise specifies the input and expected result.
- Alternative considered
- A response-time target alone leaves invalid business states unchecked.
- Trade-off
- Strict validation can pause an operation for investigation.
- Reassess
- Measured processing times or new contracts with the receiving facility require the targets to be reviewed.
Try it yourself
Separate the business invariant from the 800-millisecond target. Explain the exact limit in this case.
A hint for your attempt
Completing an operation quickly but incorrectly does not satisfy the business guarantee.
Compare with a possible solution
- Business rule
- Each confirmed emptying takes effect once for the same bin and route work order. Completing a route requires documented handover status and resolved discrepancies. The counterexample test checks that the resulting state is allowed.
- Operations and boundary
- The 800-millisecond target applies to 95% of local commands in the assumed peak-load profile. The illustrative load limit is 10000 kg; additional planned loading is allowed only if total mass remains ≤ 10000 kg.
Apply to your project
Which rule of your project remains binding even with slow processing?