Accounting Sync Orchestrator
Component Detail
Service Layer
medium complexity
backend
0
Dependencies
0
Dependents
6
Entities
0
Integrations
Description
Coordinates post-approval sync triggers for both Xledger and Dynamics connectors. Listens for approval events from the reimbursement and honorarium workflows and routes sync jobs to the appropriate connector based on the organization's active integration configuration.
accounting-sync-orchestrator
Responsibilities
- Listen for approval completion events from reimbursement and honorarium workflows
- Determine which accounting connector to invoke based on organization feature flags
- Enqueue sync jobs and manage processing order to avoid duplicate submissions
- Surface sync failures back to the integration status screen
Interfaces
onReimbursementApproved(reimbursementId, orgId)
onHonorariumApproved(honorariumId, orgId)
routeToConnector(record, orgId)
enqueueSyncJob(job)
processSyncQueue(orgId)
cancelPendingJob(jobId)
Related Data Entities (6)
Data entities managed by this component