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.

Feature: Accounting System Integration

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)