Moqui Architecture: How the Framework and ERP Layers Work

Moqui Framework
Moqui architecture-first ERP framework with modular business system layers

Moqui architecture organizes an enterprise application into connected layers for data, business logic, user interfaces, and security. The Moqui Framework provides entities, services, and screens; Mantle adds reusable business data models and services; and applications build on those foundations to support ERP workflows.

This guide explains how those layers work together, how a request moves through a Moqui application, and where integrations and custom business logic fit.

How Moqui Architecture Is Organized

Moqui is an application framework that can be used to build ERP and other enterprise systems. Its architecture is easier to understand when the framework, reusable business artifacts, and finished applications are viewed as related but distinct parts.

Moqui Framework

The framework supplies the core tools developers use to define data entities, run business services, build screens and forms, control access, and connect with other systems. These tools work together within the same application environment.

Mantle Business Artifacts

Mantle sits above the framework and provides reusable business data models, services, screens, and forms. A team can build on these artifacts instead of defining every common business concept from the beginning.

ERP and Other Business Applications

Applications use the framework and, where appropriate, Mantle artifacts to deliver workflows for functions such as orders, inventory, purchasing, and accounting. A custom Moqui implementation can extend these layers to fit its own processes.

Why Traditional ERP Systems Struggle at Enterprise Scale

Many traditional ERP systems were built for slower business environments, limited integrations, and more predictable workflows. Those assumptions no longer fit modern enterprises.

As businesses grow, ERP systems often need to support multiple locations, ecommerce platforms, warehouse systems, supplier networks, finance workflows, customer portals, analytics tools, and AI-driven automation. Older ERP structures can become difficult to extend without creating technical debt.

Common problems include slow customization, risky upgrades, fragmented data, rigid workflows, weak integration layers, and user interfaces that feel outdated. These issues usually come from earlier architecture decisions, not just poor implementation.

The Core Layers of Moqui Architecture

Moqui ERP framework modular architecture

Entity Layer: Defining and Accessing Data

Entities describe the data an application stores and the relationships between records. Moqui's Entity Facade gives services and other application artifacts a consistent way to work with that data. In an ERP application, entities might represent orders, products, inventory records, or customers.

Service Layer: Running Business Logic

Services contain reusable application logic. A service can validate inputs, carry out a transaction, call another service, and read or update entities. The same service may support an internal workflow or be exposed to another system through an appropriate interface. Keeping business logic in services helps teams avoid implementing the same rule separately in multiple screens or integrations.

Screen Layer: Handling User Interactions

Screens and forms present information and collect user input. Screen actions can prepare data for display, while transitions can process a user's action and call a service. This connects the user interface to the service and entity layers without placing every business rule inside a page.

Security Across Application Artifacts

Moqui supports authentication and authorization for application artifacts such as screens and services. Teams can define who may access a workflow or perform an action, then apply those controls as the application is extended.

Components and Integrations

Moqui applications can be organized into components containing entities, services, screens, and other artifacts. Services provide a logical point for connecting ERP workflows with external applications, including ecommerce platforms, warehouse systems, and customer portals. The integration design still depends on the systems involved and the data each needs to exchange.

How a Request Moves Through a Moqui Application

Consider a customer service employee creating an order. The following is an illustrative workflow; the exact implementation depends on the application.

  1. The employee enters order details into a screen and submits the form.
  2. A screen transition passes the request to an order service.
  3. The service validates the input and applies the required business rules.
  4. The service creates or updates order records through the entity layer.
  5. The application returns the result to the screen, where the employee can review the order status.

An ecommerce storefront could also call an appropriate service to initiate an order. This illustrates why the service layer is central to Moqui architecture: business logic can be reused across different entry points instead of being tied to one user interface.

Moqui and AI-Ready ERP Architecture

AI in ERP depends on more than adding a chatbot or prediction model. It requires clean data structures, reliable workflows, consistent business rules, and accessible service layers.

Moqui supports these foundations by giving enterprises a structured way to organize data, processes, and integrations. This can support future use cases such as demand forecasting, production planning optimization, intelligent order routing, anomaly detection, and automated decision support.

Without a strong ERP architecture, AI projects often struggle because the data is fragmented, process logic is inconsistent, or integrations are too brittle.

Applying Moqui Architecture in a Real Project

Designing a Moqui application involves deciding which business data belongs in entities, which processes should run through services, and how screens and external systems will use those services. These decisions shape how easily the application can be extended as requirements change.

NOI Technologies is a Moqui service provider listed in the official Moqui directory. Our team helps businesses plan and build Moqui-based applications, including custom ERP workflows, integrations, and extensions to existing systems. For details about our work, see our Moqui development services.

Final Thoughts

Moqui is an architecture-first ERP framework for enterprises that need flexibility, integration control, and long-term adaptability. It is not designed for businesses looking for a quick, fixed ERP package. It is designed for organizations that need a strong foundation for custom ERP systems and evolving business operations.

For manufacturing, retail, ecommerce, logistics, and SaaS ERP environments, Moqui gives development teams a structured way to build systems around real business processes instead of forcing the business to adjust to rigid software limits.

As ERP systems become long-term business platforms rather than one-time software implementations, architecture matters more than ever. Moqui’s strength is that it treats architecture as the foundation, not an afterthought.

Planning a Moqui ERP Project?

NOI Technologies can help you evaluate, design, customize, modernize, or integrate Moqui-based ERP systems for complex business workflows.

Talk to Our Moqui Experts

Frequently Asked Questions

What are the main layers of Moqui architecture?

The Moqui Framework provides entity, service, and screen tools, along with capabilities such as security and integration. Mantle adds reusable business artifacts, and applications use these foundations to deliver business workflows.

What does the service layer do in Moqui?

The service layer runs reusable business logic. Services can validate inputs, call other services, and work with entities, allowing different screens or integrations to use the same logic.

How do screens and services work together in Moqui?

Screens display information and collect input. A screen transition can call a service to process that input, after which the application can display the result.

What is Mantle's role in Moqui architecture?

Mantle provides reusable business data models, services, screens, and forms built on the Moqui Framework. Applications can use and extend these artifacts for their own requirements.