Bufdir Format Configuration
Component Detail
Infrastructure
medium complexity
backend
0
Dependencies
1
Dependents
0
Entities
0
Integrations
Description
Infrastructure component that manages the configurable Bufdir reporting format specification stored as JSON. Defines the field mapping rules between internal activity data and the exact fields and format Bufdir expects, enabling format changes through configuration rather than code modifications.
bufdir-format-config
Responsibilities
- Load and validate Bufdir format specification from JSON config
- Map internal activity fields to Bufdir-required fields
- Support extensible output formats (XLSX, CSV, XML, JSON)
Interfaces
loadFormatSpec()
getFieldMappings()
validateFormatSpec(spec)
getSupportedOutputFormats()
mapActivityTobufdirFields(activity, mappings)