# apache/ofbiz architecture

> Architecture diagram of the GitHub repository apache/ofbiz, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-14). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/apache/ofbiz
- Repository: https://github.com/apache/ofbiz

## Overview

Apache OFBiz is a Java ERP platform spanning business domains such as ordering, products, accounting, parties, content, manufacturing, and marketing. A representative user journey begins in the Order Back Office, works with order and product capabilities, and persists business data through the entity layer; the README identifies these back-office entry points and the ERP scope, but the excerpts do not establish the detailed checkout call chain. The graph therefore distinguishes documented scope from source-index-supported framework relationships; several application links remain unverified.

Main entry points: [`framework/service/src/main/java/org/apache/ofbiz/service/ServiceDispatcher.java`](https://github.com/apache/ofbiz/blob/trunk/framework/service/src/main/java/org/apache/ofbiz/service/ServiceDispatcher.java) (Service dispatch), [`framework/service/src/main/java/org/apache/ofbiz/service/engine/EntityAutoEngine.java`](https://github.com/apache/ofbiz/blob/trunk/framework/service/src/main/java/org/apache/ofbiz/service/engine/EntityAutoEngine.java) (Auto entity services), [`framework/entity/src/main/java/org/apache/ofbiz/entity/Delegator.java`](https://github.com/apache/ofbiz/blob/trunk/framework/entity/src/main/java/org/apache/ofbiz/entity/Delegator.java) (Entity access), [`applications/order/src/main/java/org/apache/ofbiz/order`](https://github.com/apache/ofbiz/tree/trunk/applications/order/src/main/java/org/apache/ofbiz/order) (Order management)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_business["Business applications"]
  node_order["Order management"]
  node_product["Product management"]
  node_accounting["Accounting"]
  node_party["Party management"]
  node_content["Content management"]
  node_manufacturing["Manufacturing"]
  node_marketing["Marketing"]
end

subgraph group_service["Service runtime"]
  node_service_dispatch["Service dispatch"]
  node_service_context["Service context"]
  node_service_model["Service metadata<br/>[ModelService.java]"]
  node_service_simple["MiniLang engine"]
  node_service_call["Service call operation<br/>[CallService.java]"]
end

subgraph group_entity["Entity persistence"]
  node_entity_delegator["Entity access<br/>[Delegator.java]"]
  node_entity_value["Entity values<br/>[GenericValue.java]"]
  node_entity_query["Entity query<br/>[EntityQuery.java]"]
  node_entity_engine["Auto entity services"]
  node_entity_store[("Business data store")]
end

subgraph group_foundation["Base utilities"]
  node_util_misc["Collection utilities<br/>[UtilMisc.java]"]
  node_util_properties["Property resources"]
  node_util_validate["Input validation<br/>[UtilValidate.java]"]
  node_util_date["Date utilities<br/>[UtilDateTime.java]"]
  node_util_xml["XML utilities<br/>[UtilXml.java]"]
  node_util_type["Type utilities<br/>[ObjectType.java]"]
end

node_user(("Back-office user"))

node_user -->|"uses back office"| node_order
node_user -->|"uses back office"| node_accounting
node_service_simple -->|"uses dispatcher"| node_service_dispatch
node_service_call -->|"calls services"| node_service_dispatch
node_service_context -->|"resolves metadata"| node_service_model
node_entity_engine -->|"uses dispatcher"| node_service_dispatch
node_entity_engine -->|"queries entities"| node_entity_query
node_entity_engine -->|"uses values"| node_entity_value
node_entity_query -->|"queries through"| node_entity_delegator
node_entity_value -->|"reads relations"| node_entity_delegator
node_entity_delegator -.->|"reads and writes"| node_entity_store
node_order -.->|"invokes services"| node_service_dispatch
node_product -.->|"invokes services"| node_service_dispatch
node_accounting -.->|"invokes services"| node_service_dispatch
node_party -.->|"invokes services"| node_service_dispatch
node_content -.->|"invokes services"| node_service_dispatch
node_manufacturing -.->|"invokes services"| node_service_dispatch
node_marketing -.->|"invokes services"| node_service_dispatch

click node_order "https://github.com/apache/ofbiz/tree/trunk/applications/order/src/main/java/org/apache/ofbiz/order"
click node_product "https://github.com/apache/ofbiz/tree/trunk/applications/product/src/main/java/org/apache/ofbiz/product"
click node_accounting "https://github.com/apache/ofbiz/tree/trunk/applications/accounting/src/main/java/org/apache/ofbiz/accounting"
click node_party "https://github.com/apache/ofbiz/tree/trunk/applications/party/src/main/java/org/apache/ofbiz/party"
click node_content "https://github.com/apache/ofbiz/tree/trunk/applications/content/src/main/java/org/apache/ofbiz/content"
click node_manufacturing "https://github.com/apache/ofbiz/tree/trunk/applications/manufacturing/src/main/java/org/apache/ofbiz/manufacturing"
click node_marketing "https://github.com/apache/ofbiz/tree/trunk/applications/marketing/src/main/java/org/apache/ofbiz/marketing"
click node_service_dispatch "https://github.com/apache/ofbiz/blob/trunk/framework/service/src/main/java/org/apache/ofbiz/service/ServiceDispatcher.java"
click node_service_context "https://github.com/apache/ofbiz/blob/trunk/framework/service/src/main/java/org/apache/ofbiz/service/DispatchContext.java"
click node_service_model "https://github.com/apache/ofbiz/blob/trunk/framework/service/src/main/java/org/apache/ofbiz/service/ModelService.java"
click node_service_simple "https://github.com/apache/ofbiz/blob/trunk/framework/minilang/src/main/java/org/apache/ofbiz/minilang/SimpleServiceEngine.java"
click node_service_call "https://github.com/apache/ofbiz/blob/trunk/framework/minilang/src/main/java/org/apache/ofbiz/minilang/method/callops/CallService.java"
click node_entity_delegator "https://github.com/apache/ofbiz/blob/trunk/framework/entity/src/main/java/org/apache/ofbiz/entity/Delegator.java"
click node_entity_value "https://github.com/apache/ofbiz/blob/trunk/framework/entity/src/main/java/org/apache/ofbiz/entity/GenericValue.java"
click node_entity_query "https://github.com/apache/ofbiz/blob/trunk/framework/entity/src/main/java/org/apache/ofbiz/entity/util/EntityQuery.java"
click node_entity_engine "https://github.com/apache/ofbiz/blob/trunk/framework/service/src/main/java/org/apache/ofbiz/service/engine/EntityAutoEngine.java"
click node_util_misc "https://github.com/apache/ofbiz/blob/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilMisc.java"
click node_util_properties "https://github.com/apache/ofbiz/blob/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilProperties.java"
click node_util_validate "https://github.com/apache/ofbiz/blob/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilValidate.java"
click node_util_date "https://github.com/apache/ofbiz/blob/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilDateTime.java"
click node_util_xml "https://github.com/apache/ofbiz/blob/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilXml.java"
click node_util_type "https://github.com/apache/ofbiz/blob/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/ObjectType.java"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_order,node_product,node_accounting,node_party,node_content,node_manufacturing,node_marketing,node_user toneBlue
class node_service_dispatch,node_service_context,node_service_model,node_service_simple,node_service_call toneAmber
class node_entity_delegator,node_entity_value,node_entity_query,node_entity_engine,node_entity_store toneMint
class node_util_misc,node_util_properties,node_util_validate,node_util_date,node_util_xml,node_util_type toneRose
```

## Components

### Business applications

- [Order management](https://github.com/apache/ofbiz/tree/trunk/applications/order/src/main/java/org/apache/ofbiz/order): `applications/order/src/main/java/org/apache/ofbiz/order`
- [Product management](https://github.com/apache/ofbiz/tree/trunk/applications/product/src/main/java/org/apache/ofbiz/product): `applications/product/src/main/java/org/apache/ofbiz/product`
- [Accounting](https://github.com/apache/ofbiz/tree/trunk/applications/accounting/src/main/java/org/apache/ofbiz/accounting): `applications/accounting/src/main/java/org/apache/ofbiz/accounting`
- [Party management](https://github.com/apache/ofbiz/tree/trunk/applications/party/src/main/java/org/apache/ofbiz/party): `applications/party/src/main/java/org/apache/ofbiz/party`
- [Content management](https://github.com/apache/ofbiz/tree/trunk/applications/content/src/main/java/org/apache/ofbiz/content): `applications/content/src/main/java/org/apache/ofbiz/content`
- [Manufacturing](https://github.com/apache/ofbiz/tree/trunk/applications/manufacturing/src/main/java/org/apache/ofbiz/manufacturing): `applications/manufacturing/src/main/java/org/apache/ofbiz/manufacturing`
- [Marketing](https://github.com/apache/ofbiz/tree/trunk/applications/marketing/src/main/java/org/apache/ofbiz/marketing): `applications/marketing/src/main/java/org/apache/ofbiz/marketing`

### Service runtime

- [Service dispatch](https://github.com/apache/ofbiz/blob/trunk/framework/service/src/main/java/org/apache/ofbiz/service/ServiceDispatcher.java): `framework/service/src/main/java/org/apache/ofbiz/service/ServiceDispatcher.java`
- [Service context](https://github.com/apache/ofbiz/blob/trunk/framework/service/src/main/java/org/apache/ofbiz/service/DispatchContext.java): `framework/service/src/main/java/org/apache/ofbiz/service/DispatchContext.java`
- [Service metadata](https://github.com/apache/ofbiz/blob/trunk/framework/service/src/main/java/org/apache/ofbiz/service/ModelService.java): `framework/service/src/main/java/org/apache/ofbiz/service/ModelService.java`
- [MiniLang engine](https://github.com/apache/ofbiz/blob/trunk/framework/minilang/src/main/java/org/apache/ofbiz/minilang/SimpleServiceEngine.java): `framework/minilang/src/main/java/org/apache/ofbiz/minilang/SimpleServiceEngine.java`
- [Service call operation](https://github.com/apache/ofbiz/blob/trunk/framework/minilang/src/main/java/org/apache/ofbiz/minilang/method/callops/CallService.java): `framework/minilang/src/main/java/org/apache/ofbiz/minilang/method/callops/CallService.java`

### Entity persistence

- [Entity access](https://github.com/apache/ofbiz/blob/trunk/framework/entity/src/main/java/org/apache/ofbiz/entity/Delegator.java): `framework/entity/src/main/java/org/apache/ofbiz/entity/Delegator.java`
- [Entity values](https://github.com/apache/ofbiz/blob/trunk/framework/entity/src/main/java/org/apache/ofbiz/entity/GenericValue.java): `framework/entity/src/main/java/org/apache/ofbiz/entity/GenericValue.java`
- [Entity query](https://github.com/apache/ofbiz/blob/trunk/framework/entity/src/main/java/org/apache/ofbiz/entity/util/EntityQuery.java): `framework/entity/src/main/java/org/apache/ofbiz/entity/util/EntityQuery.java`
- [Auto entity services](https://github.com/apache/ofbiz/blob/trunk/framework/service/src/main/java/org/apache/ofbiz/service/engine/EntityAutoEngine.java): `framework/service/src/main/java/org/apache/ofbiz/service/engine/EntityAutoEngine.java`
- **Business data store**

### Base utilities

- [Collection utilities](https://github.com/apache/ofbiz/blob/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilMisc.java): `framework/base/src/main/java/org/apache/ofbiz/base/util/UtilMisc.java`
- [Property resources](https://github.com/apache/ofbiz/blob/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilProperties.java): `framework/base/src/main/java/org/apache/ofbiz/base/util/UtilProperties.java`
- [Input validation](https://github.com/apache/ofbiz/blob/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilValidate.java): `framework/base/src/main/java/org/apache/ofbiz/base/util/UtilValidate.java`
- [Date utilities](https://github.com/apache/ofbiz/blob/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilDateTime.java): `framework/base/src/main/java/org/apache/ofbiz/base/util/UtilDateTime.java`
- [XML utilities](https://github.com/apache/ofbiz/blob/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilXml.java): `framework/base/src/main/java/org/apache/ofbiz/base/util/UtilXml.java`
- [Type utilities](https://github.com/apache/ofbiz/blob/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/ObjectType.java): `framework/base/src/main/java/org/apache/ofbiz/base/util/ObjectType.java`

### Other components

- **Back-office user**

## Connections

- Back-office user → Order management: uses back office
- Back-office user → Accounting: uses back office
- MiniLang engine → Service dispatch: uses dispatcher (evidence: `framework/minilang/src/main/java/org/apache/ofbiz/minilang/SimpleServiceEngine.java`)
- Service call operation → Service dispatch: calls services (evidence: `framework/minilang/src/main/java/org/apache/ofbiz/minilang/method/callops/CallService.java`)
- Service context → Service metadata: resolves metadata (evidence: `framework/service/src/main/java/org/apache/ofbiz/service/DispatchContext.java`)
- Auto entity services → Service dispatch: uses dispatcher (evidence: `framework/service/src/main/java/org/apache/ofbiz/service/engine/EntityAutoEngine.java`)
- Auto entity services → Entity query: queries entities (evidence: `framework/service/src/main/java/org/apache/ofbiz/service/engine/EntityAutoEngine.java`)
- Auto entity services → Entity values: uses values (evidence: `framework/service/src/main/java/org/apache/ofbiz/service/engine/EntityAutoEngine.java`)
- Entity query → Entity access: queries through (evidence: `framework/entity/src/main/java/org/apache/ofbiz/entity/util/EntityQuery.java`)
- Entity values → Entity access: reads relations (evidence: `framework/entity/src/main/java/org/apache/ofbiz/entity/GenericValue.java`)
- Entity access → Business data store: reads and writes
- Order management → Service dispatch: invokes services
- Product management → Service dispatch: invokes services
- Accounting → Service dispatch: invokes services
- Party management → Service dispatch: invokes services
- Content management → Service dispatch: invokes services
- Manufacturing → Service dispatch: invokes services
- Marketing → Service dispatch: invokes services
