Pause Service
Component Detail
Service Layer
medium complexity
backend
0
Dependencies
0
Dependents
2
Entities
0
Integrations
Description
Backend service that orchestrates the pause and resume workflow for mentors. Updates mentor status, removes paused mentors from matching pools, and triggers coordinator notifications.
pause-service
Sources & reasoning
Phase 2 / Core Product per matrix row (Fase 2) and §5 Phase 2 listing 'Pausefunksjon og bulkregistrering for koordinatorer'. Three orgs flagged it as a retention need; coordinator notification is an explicit requirement.
-
docs/source/likeperson.md · line 48-49Pausefunksjon for likepersoner (NHF + HLF + Barnekreftforeningen). Likepersoner skal kunne sette seg på pause (midlertidig deaktivering) uten å melde seg ut. Koordinator må varsles.
-
docs/source/likeperson.md · line 100Pausefunksjon for likepersoner | ✓ | ✓ | - | ✓ | ✓ | SHOULD HAVE | 2
Responsibilities
- Validate pause/resume requests against mentor permissions
- Update mentor status via the status store
- Exclude paused mentors from active rosters and matching
- Notify coordinators when a mentor pauses or resumes
- Preserve account history and certification during pause
Interfaces
pauseMentor(mentorId): PauseResult
resumeMentor(mentorId): ResumeResult
getPauseStatus(mentorId): MentorStatus
notifyCoordinators(mentorId, action): void
Related Data Entities (2)
Data entities managed by this component