Service Layer medium complexity backend
0
Dependencies
0
Dependents
0
Entities
0
Integrations

Description

Backend service that manages notification scenario configurations, binding triggers to templates, channels, and target audiences. Provides org-scoped CRUD for scenarios and resolves which scenarios apply for a given event at runtime.

Feature: Notification Scenarios

scenario-config-service

Sources & reasoning

HLF explicitly requests 'scenariobaserte push-meldinger' (line 74) and Blindeforbundet requires the 10-day automated reminder (line 57). Both demand a configurable scenario engine rather than hard-coded triggers. Belongs in Core Product alongside the channels that deliver it.

  • Oppfølging av likepersoner: 40 % var ikke fornøyd med oppfølgingen i spørreundersøkelse. Scenariobaserte push-meldinger og kalendersynkronisering.
  • Automatisk pĂĄminnelse etter 10 dager dersom kontakt ikke er opprettet.

Responsibilities

  • Create, update, and delete notification scenarios per organization
  • Bind event triggers to message templates and channel mixes
  • Resolve target audience (roles) for each scenario
  • Look up applicable scenarios when business events fire
  • Enforce validation rules on scenario definitions

Interfaces

createScenario(orgId, scenario): ScenarioId
updateScenario(scenarioId, changes): Scenario
deleteScenario(scenarioId): void
resolveScenariosForEvent(orgId, eventType): Scenario[]
listScenarios(orgId, filter): Scenario[]