Knowledge Domain Database - Tourism
How does the domain work before writing a line of code? Choose a document from the left tree: each page explains part of the model.
Business Rules - Tourism Domain
Business rules define the explicit constraints and behavioural policies that govern operations in the Tourism domain. Each rule is identified by a BR-NNN code for traceability.
---
BR-001 - Booking Date Validation
Category: Data integrity Scope: Booking entity, StayPeriod value object
A Booking can only be created with valid dates:
---
BR-002 - Destination and Attraction Carrying Capacity
Category: Sustainability constraint Scope: Destination, Attraction, booking availability
A Tourist Destination and each of its Attractions have a defined maximum carrying capacity (physical and/or ecological). When the number of simultaneous visitors reaches the threshold:
---
BR-003 - Cancellation Policy and Penalties
Category: Contractual constraint Scope: Booking lifecycle, CancellationPolicy value object
The cancellation penalty depends on the rate type:
freeDeadlineHours; partial or full penalty after that thresholdRegulatory basis: EU Directive 2015/2302 (Package Travel), which provides for exceptions in cases of unavoidable and extraordinary circumstances (natural disasters, pandemics, documented force majeure).
Traceable events: BookingCancelled, NoShowRecorded
---
BR-004 - Accommodation Structure Classification
Category: Regulatory compliance Scope: AccommodationStructure entity
Each Accommodation Structure must declare a valid classification type: hotel, agriturismo, B&B, hostel, resort, or other. Hotel-type structures must display a star rating assigned by the competent regional authority.
- Stars are assigned based on objective minimum requirements (surface area, services, facilities) defined by regional decree
- The star rating may not be self-declared; it requires official certification
- Structures operating without a valid classification are not eligible to appear in the booking system
---
BR-005 - Itinerary Completeness before Publication
Category: Product quality gate Scope: Itinerary entity, Itinerary lifecycle
An Itinerary may not transition from DRAFT to PUBLISHED state unless:
---
BR-006 - Tour Guide Territorial Authorisation
Category: Professional regulatory compliance Scope: TouristGuide actor, guided visit services
A Tourist Guide may only lead visitors in the territories for which they hold a valid regional authorisation. The authorisation:
Regulatory basis: Italian Framework Law on Tourism n. 135/2001.
---
BR-007 - Tour Operator Anti-insolvency Insurance
Category: Consumer protection - mandatory Scope: TourOperator actor, Package Tourism
Any Tour Operator that sells Package Tourism products (as defined under EU Directive 2015/2302) must maintain mandatory anti-insolvency insurance or a bond. This guarantees:
---
BR-008 - Agriturismo Agricultural Prevalence
Category: Regulatory compliance - specialised accommodation Scope: AccommodationStructure with type=agriturismo
An agriturismo (farm tourism) accommodation is a specialised type of AccommodationStructure. Its fundamental constraint is that the agricultural activity of the farm must remain the primary activity by revenue. Specifically: