Bulk Activity Service
Component Detail
Service Layer
high complexity
mobilebackend
2
Dependencies
1
Dependents
4
Entities
0
Integrations
Description
BLoC-layer service that orchestrates batch activity creation for bulk registration. Splits large participant lists into chunks, dispatches each chunk to the backend bulk endpoint, tracks per-chunk results, and emits progress and completion events to the UI.
bulk-activity-service
Responsibilities
- Accept an activity template and a participant ID list and dispatch batch creation
- Chunk participant lists into groups (max 50) to avoid request timeouts
- Call backend bulk endpoint with activity template and participant ID array
- Emit progress events per chunk and a final summary event with success and failure counts
- Tag each created activity record with coordinator ID and shared batch_reference_id for audit traceability
Interfaces
submitBulkRegistration(ActivityTemplate template, List<String> participantIds) -> Stream<BulkProgressEvent>
cancelBatch(String batchReferenceId) -> Future<void>
getBatchResult(String batchReferenceId) -> Future<BatchResult>
Relationships
Dependencies (2)
Components this component depends on
Related Data Entities (4)
Data entities managed by this component