# houdaahmad/corticonautocommaprilcanada architecture

> Architecture diagram of the GitHub repository houdaahmad/corticonautocommaprilcanada, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-27). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/houdaahmad/corticonautocommaprilcanada
- Repository: https://github.com/houdaahmad/corticonautocommaprilcanada

## Overview

This repository appears to define an insurance-policy rating product in rule/flow artifacts: a main premium flow, product-specific coverage and pricing rules, and supporting premium and surcharge calculations. The tree suggests a workflow from policy inputs through product rating to total premium, but no README or source excerpts were provided, so the connections below are dashed and unverified; the graph does not assert call order or data transfer.

Main entry points: [`Services/MainFlow/MainFlow.erf`](https://github.com/houdaahmad/corticonautocommaprilcanada/blob/main/Services/MainFlow/MainFlow.erf) (Main rating flow), [`Services/GarageProperty/GaragePropertyFlow.erf`](https://github.com/houdaahmad/corticonautocommaprilcanada/blob/main/Services/GarageProperty/GaragePropertyFlow.erf) (Garage property flow), [`Services/FPQ1/FPQ1Flow.erf`](https://github.com/houdaahmad/corticonautocommaprilcanada/blob/main/Services/FPQ1/FPQ1Flow.erf) (FPQ1 rating), [`Services/FPQ4/FPQ4Flow.erf`](https://github.com/houdaahmad/corticonautocommaprilcanada/blob/main/Services/FPQ4/FPQ4Flow.erf) (FPQ4 rating)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_orchestration["Rating orchestration"]
  node_mainflow["Main rating flow<br/>[MainFlow.erf]"]
  node_initpremium["Premium initialization"]
  node_total["Total premium<br/>[Total.ers]"]
end

subgraph group_vehicle["Vehicle products"]
  node_fpq1["FPQ1 rating<br/>[FPQ1Flow.erf]"]
  node_fpq1base["Base coverage<br/>[BasePremium.erf]"]
  node_fpq1surcharge["FPQ1 surcharges<br/>[Surcharges.erf]"]
  node_fpq4["FPQ4 rating<br/>[FPQ4Flow.erf]"]
  node_fpq4rate["FPQ4 rate rules<br/>[Rates.erf]"]
  node_fpq4coverage["FPQ4 coverages<br/>[Coverages.erf]"]
end

subgraph group_cargo["Cargo product"]
  node_cargo["Cargo rating<br/>[Cargo.erf]"]
  node_cargorates["Cargo rate rules<br/>[Rates.erf]"]
  node_cargopremium["Cargo premiums<br/>[Premium.erf]"]
end

subgraph group_property["Property product"]
  node_garageproperty["Garage property flow"]
  node_buildingrate["Building rates<br/>[BuildingRate.erf]"]
  node_propertycoverage["Property coverages"]
  node_propertysurcharge["Property surcharges<br/>[Surcharges.erf]"]
end

subgraph group_commercial["Commercial products"]
  node_cglgarage["CGL garage flow<br/>[CGLGarageFlow.erf]"]
  node_cgltransport["CGL transport flow<br/>[CGLTransport.erf]"]
end

node_user(("Policy user"))

node_user -.->|"initiates rating"| node_mainflow
node_mainflow -.->|"may initialize"| node_initpremium
node_mainflow -.->|"may dispatch"| node_fpq1
node_mainflow -.->|"may dispatch"| node_fpq4
node_mainflow -.->|"may dispatch"| node_cargo
node_mainflow -.->|"may dispatch"| node_garageproperty
node_mainflow -.->|"may dispatch"| node_cglgarage
node_mainflow -.->|"may dispatch"| node_cgltransport
node_fpq1 -.->|"may calculate"| node_fpq1base
node_fpq1 -.->|"may calculate"| node_fpq1surcharge
node_fpq4 -.->|"may calculate"| node_fpq4rate
node_fpq4 -.->|"may calculate"| node_fpq4coverage
node_cargo -.->|"may calculate"| node_cargorates
node_cargo -.->|"may calculate"| node_cargopremium
node_garageproperty -.->|"may calculate"| node_buildingrate
node_garageproperty -.->|"may calculate"| node_propertycoverage
node_garageproperty -.->|"may calculate"| node_propertysurcharge
node_initpremium -.->|"may contribute"| node_total

click node_mainflow "https://github.com/houdaahmad/corticonautocommaprilcanada/blob/main/Services/MainFlow/MainFlow.erf"
click node_initpremium "https://github.com/houdaahmad/corticonautocommaprilcanada/blob/main/Services/MainFlow/InitFullPremium.ers"
click node_total "https://github.com/houdaahmad/corticonautocommaprilcanada/blob/main/Services/MainFlow/Total.ers"
click node_fpq1 "https://github.com/houdaahmad/corticonautocommaprilcanada/blob/main/Services/FPQ1/FPQ1Flow.erf"
click node_fpq1base "https://github.com/houdaahmad/corticonautocommaprilcanada/blob/main/Services/FPQ1/Coverages/Base/BasePremium.erf"
click node_fpq1surcharge "https://github.com/houdaahmad/corticonautocommaprilcanada/blob/main/Services/FPQ1/Surcharges/Surcharges.erf"
click node_fpq4 "https://github.com/houdaahmad/corticonautocommaprilcanada/blob/main/Services/FPQ4/FPQ4Flow.erf"
click node_fpq4rate "https://github.com/houdaahmad/corticonautocommaprilcanada/blob/main/Services/FPQ4/Base/Rate/Rates.erf"
click node_fpq4coverage "https://github.com/houdaahmad/corticonautocommaprilcanada/blob/main/Services/FPQ4/Coverages/coverages/Coverages.erf"
click node_cargo "https://github.com/houdaahmad/corticonautocommaprilcanada/blob/main/Services/Cargo/Cargo.erf"
click node_cargorates "https://github.com/houdaahmad/corticonautocommaprilcanada/blob/main/Services/Cargo/Rate/Rates.erf"
click node_cargopremium "https://github.com/houdaahmad/corticonautocommaprilcanada/blob/main/Services/Cargo/Premium/Premium.erf"
click node_garageproperty "https://github.com/houdaahmad/corticonautocommaprilcanada/blob/main/Services/GarageProperty/GaragePropertyFlow.erf"
click node_buildingrate "https://github.com/houdaahmad/corticonautocommaprilcanada/blob/main/Services/GarageProperty/BuildingRate/BuildingRate.erf"
click node_propertycoverage "https://github.com/houdaahmad/corticonautocommaprilcanada/blob/main/Services/GarageProperty/CoveragePremium/CoveragePremium.erf"
click node_propertysurcharge "https://github.com/houdaahmad/corticonautocommaprilcanada/blob/main/Services/GarageProperty/Surcharges/Surcharges.erf"
click node_cglgarage "https://github.com/houdaahmad/corticonautocommaprilcanada/blob/main/Services/CGLGarage/CGLGarageFlow.erf"
click node_cgltransport "https://github.com/houdaahmad/corticonautocommaprilcanada/blob/main/Services/CGLTransport/CGLTransport.erf"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_mainflow,node_initpremium,node_total,node_user toneBlue
class node_fpq1,node_fpq1base,node_fpq1surcharge,node_fpq4,node_fpq4rate,node_fpq4coverage toneAmber
class node_cargo,node_cargorates,node_cargopremium toneMint
class node_garageproperty,node_buildingrate,node_propertycoverage,node_propertysurcharge toneRose
class node_cglgarage,node_cgltransport toneIndigo
```

## Components

### Rating orchestration

- [Main rating flow](https://github.com/houdaahmad/corticonautocommaprilcanada/blob/main/Services/MainFlow/MainFlow.erf): `Services/MainFlow/MainFlow.erf`
- [Premium initialization](https://github.com/houdaahmad/corticonautocommaprilcanada/blob/main/Services/MainFlow/InitFullPremium.ers): `Services/MainFlow/InitFullPremium.ers`
- [Total premium](https://github.com/houdaahmad/corticonautocommaprilcanada/blob/main/Services/MainFlow/Total.ers): `Services/MainFlow/Total.ers`

### Vehicle products

- [FPQ1 rating](https://github.com/houdaahmad/corticonautocommaprilcanada/blob/main/Services/FPQ1/FPQ1Flow.erf): `Services/FPQ1/FPQ1Flow.erf`
- [Base coverage](https://github.com/houdaahmad/corticonautocommaprilcanada/blob/main/Services/FPQ1/Coverages/Base/BasePremium.erf): `Services/FPQ1/Coverages/Base/BasePremium.erf`
- [FPQ1 surcharges](https://github.com/houdaahmad/corticonautocommaprilcanada/blob/main/Services/FPQ1/Surcharges/Surcharges.erf): `Services/FPQ1/Surcharges/Surcharges.erf`
- [FPQ4 rating](https://github.com/houdaahmad/corticonautocommaprilcanada/blob/main/Services/FPQ4/FPQ4Flow.erf): `Services/FPQ4/FPQ4Flow.erf`
- [FPQ4 rate rules](https://github.com/houdaahmad/corticonautocommaprilcanada/blob/main/Services/FPQ4/Base/Rate/Rates.erf): `Services/FPQ4/Base/Rate/Rates.erf`
- [FPQ4 coverages](https://github.com/houdaahmad/corticonautocommaprilcanada/blob/main/Services/FPQ4/Coverages/coverages/Coverages.erf): `Services/FPQ4/Coverages/coverages/Coverages.erf`

### Cargo product

- [Cargo rating](https://github.com/houdaahmad/corticonautocommaprilcanada/blob/main/Services/Cargo/Cargo.erf): `Services/Cargo/Cargo.erf`
- [Cargo rate rules](https://github.com/houdaahmad/corticonautocommaprilcanada/blob/main/Services/Cargo/Rate/Rates.erf): `Services/Cargo/Rate/Rates.erf`
- [Cargo premiums](https://github.com/houdaahmad/corticonautocommaprilcanada/blob/main/Services/Cargo/Premium/Premium.erf): `Services/Cargo/Premium/Premium.erf`

### Property product

- [Garage property flow](https://github.com/houdaahmad/corticonautocommaprilcanada/blob/main/Services/GarageProperty/GaragePropertyFlow.erf): `Services/GarageProperty/GaragePropertyFlow.erf`
- [Building rates](https://github.com/houdaahmad/corticonautocommaprilcanada/blob/main/Services/GarageProperty/BuildingRate/BuildingRate.erf): `Services/GarageProperty/BuildingRate/BuildingRate.erf`
- [Property coverages](https://github.com/houdaahmad/corticonautocommaprilcanada/blob/main/Services/GarageProperty/CoveragePremium/CoveragePremium.erf): `Services/GarageProperty/CoveragePremium/CoveragePremium.erf`
- [Property surcharges](https://github.com/houdaahmad/corticonautocommaprilcanada/blob/main/Services/GarageProperty/Surcharges/Surcharges.erf): `Services/GarageProperty/Surcharges/Surcharges.erf`

### Commercial products

- [CGL garage flow](https://github.com/houdaahmad/corticonautocommaprilcanada/blob/main/Services/CGLGarage/CGLGarageFlow.erf): `Services/CGLGarage/CGLGarageFlow.erf`
- [CGL transport flow](https://github.com/houdaahmad/corticonautocommaprilcanada/blob/main/Services/CGLTransport/CGLTransport.erf): `Services/CGLTransport/CGLTransport.erf`

### Other components

- **Policy user**

## Connections

- Policy user → Main rating flow: initiates rating
- Main rating flow → Premium initialization: may initialize
- Main rating flow → FPQ1 rating: may dispatch
- Main rating flow → FPQ4 rating: may dispatch
- Main rating flow → Cargo rating: may dispatch
- Main rating flow → Garage property flow: may dispatch
- Main rating flow → CGL garage flow: may dispatch
- Main rating flow → CGL transport flow: may dispatch
- FPQ1 rating → Base coverage: may calculate
- FPQ1 rating → FPQ1 surcharges: may calculate
- FPQ4 rating → FPQ4 rate rules: may calculate
- FPQ4 rating → FPQ4 coverages: may calculate
- Cargo rating → Cargo rate rules: may calculate
- Cargo rating → Cargo premiums: may calculate
- Garage property flow → Building rates: may calculate
- Garage property flow → Property coverages: may calculate
- Garage property flow → Property surcharges: may calculate
- Premium initialization → Total premium: may contribute
