A visual walkthrough of the end-to-end flow from permit ingestion to final compliance sign-off, with all the moving pieces engineered for multi-tenant reliability.
rule "Auto-assign fire safety" {
when: condition.category == "Fire safety"
then: assign(specialist.role == "fire_safety", by_workload)
}
rule "Escalate critical near-deadline" {
when: priority == "critical" AND deadline_in_days < 7
then: notify(project_manager, slack, email) AND raise(priority)
}
rule "Auto-archive completed projects" {
when: project.completion == 100 AND days_idle > 30
then: archive(project) AND snapshot(export_zip)
} ┌──────────────┐ ┌──────────────┐ ┌──────────────┐
│ customers │ 1───∞ │ projects │ 1───∞ │ conditions │
├──────────────┤ ├──────────────┤ ├──────────────┤
│ id │ │ id │ │ id │
│ name │ │ customer_id │ │ project_id │
│ plan │ │ status │ │ authority │
│ mrr │ │ deadline │ │ status │
└──────────────┘ └──────────────┘ │ assignee_id │
│ └──────────────┘
│ 1 │ 1
∞ ∞
┌──────────────┐ ┌──────────────┐
│ documents │ │ comments │
└──────────────┘ └──────────────┘