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

Description

Scheduled service that fires on configurable trigger dates (31 December for annual, 30 June for half-year) to invoke impact calculation for all eligible users and dispatch push notifications inviting them to view their summary. Coordinates between the Impact Calculation Service and the Push Notification Gateway.

Feature: Yearly Impact Summary

impact-summary-trigger-service

Responsibilities

  • Evaluate configurable trigger dates for annual and half-year summary periods
  • Iterate over eligible users within an organisation and invoke batch impact calculation
  • Dispatch personalised push notifications via Push Notification Gateway after calculation
  • Log trigger execution status and handle partial failures without aborting the full batch

Interfaces

evaluateTriggerCondition(currentDate, config)
runScheduledTrigger(periodType)
dispatchSummaryNotifications(userIds, summaryIds)
logTriggerExecution(result)
getEligibleUsers(organizationId)