Open in TheBrain

EA Automation API and External Generators

EA Automation API and External Generators

Availability

EA's Automation Interface can be used to build custom integrations that create, read, update, validate, and export model data. This is not a prebuilt C4 tool, but it is the main extension route for generating C4 views from EA or synchronizing EA with external C4 tools.

Link

Instructions

  1. Choose an integration language and EA automation access method supported by your deployment.
  2. Select a source of truth: EA, Structurizr, PlantUML, source code, CMDB, or service catalog.
  3. Define stable IDs and a mapping table for C4 element types.
  4. Read EA packages, elements, connectors, stereotypes, tagged values, and notes.
  5. Create or update C4 elements and relationships in the target format.
  6. Generate diagrams or update native EA diagrams.
  7. Produce an exceptions report for missing descriptions, unsupported types, duplicate IDs, and unmapped relationships.
  8. Run the integration in a controlled pipeline and back up the repository before bulk updates.
  9. Test against EA upgrades and changes to the external source schema.

Example mapping

EA element stereotype C4 output

c4-person Person

c4-system Software System

c4-container Container

c4-component Component

c4-code Code

Advantages

Disadvantages

Recommended safeguards

Attachments