Service Layer low complexity backend
1
Dependencies
1
Dependents
1
Entities
0
Integrations

Description

Service that resolves placeholder variables in notification message templates at send time, substituting context values such as contact name and activity date into the final message string. Applies organization-specific terminology overrides where relevant.

Feature: Notification Scenarios

template-variable-resolver

Sources & reasoning

Explicit requirement from implementation notes: templates use simple variable substitution resolved at send time. A dedicated resolver keeps this logic reusable and independently testable.

No source references — this artifact was included based on reasoning alone (see above).

Responsibilities

  • Parse template strings for variable placeholders such as {contact_name} and {activity_date}
  • Fetch and inject context values from the relevant domain entities
  • Apply organization terminology overrides to resolved strings
  • Validate template syntax and report unknown placeholders

Interfaces

resolve(template, context)
validateTemplate(template)
listSupportedVariables()

Relationships

Dependencies (1)

Components this component depends on

Dependents (1)

Components that depend on this component

Related Data Entities (1)

Data entities managed by this component