Skip to content

src/dazzle_back/runtime/mapping_executor.py

Generated: 2026-03-30T04:38:47.597545+00:00

Commit: 615f1354a103

Language: python

Scope: dazzle_back

Purpose

Integration mapping executor (v0.30.0).

Executes declarative IntegrationMapping definitions against external APIs when entity lifecycle events occur (create, update, delete, transition).

Data flow::

Entity event → EntityEventBus → MappingExecutor.handle_event()
    → match triggers by...

Key Exports

  • MappingResult
  • MappingExecutor
  • results
  • register_all
  • handle_event
  • execute_manual
  • replace_match

Dependencies

Imports

  • __future__.annotations
  • asyncio
  • logging
  • os
  • re
  • dataclasses.dataclass
  • dataclasses.field
  • typing.TYPE_CHECKING
  • typing.Any
  • httpx
  • dazzle.core.ir.integrations.AuthType
  • dazzle.core.ir.integrations.ErrorAction
  • dazzle.core.ir.integrations.MappingTriggerType
  • dazzle_back.runtime.event_bus.EntityEvent
  • dazzle_back.runtime.event_bus.EntityEventType
  • dazzle_back.runtime.http_utils.http_call_with_retry
  • dazzle.core.ir.integrations.AuthSpec
  • dazzle.core.ir.integrations.ErrorStrategy
  • dazzle.core.ir.integrations.Expression
  • dazzle.core.ir.integrations.IntegrationMapping

Event Interactions

Consumes: EntityEvent

Invariants and Assumptions

No invariants documented.

Tests

  • tests/unit/test_mapping_executor.py
  • tests/unit/test_mapping_executor_cache.py
  • tests/integration/test_runtime_e2e.py
  • tests/integration/test_runtime_pipeline.py
  • tests/unit/test_runtime_test_routes.py

Notes

This page was automatically generated by tools/gen_reference_docs.py.