Not ready for production (before 0.1.0). Like MR Moqui, which it runs on, MR Mantle is in early development. Its data model and stored data change without migrations, and a security review is under way with its findings recorded openly in the mr-moqui repository. Run it only on development machines, with no real business data or credentials, and not exposed to the internet. The full notice is at the top of the mr-moqui README.
Mantle is the business layer under the MR Moqui applications: one data model and one library of services for parties, products, orders, inventory, shipments, work, accounting and the rest of what a business records. The applications are screens over it, so an order taken in IronStone BOSS, paid on an IronStone PASS page and shown in Marble ERP is the same order, and an application of your own can start from the same ground.
It has no screens of its own. To see it at work, run one of those applications.
- The Universal Data Model (
entity/): business entities grouped by package domain, with separate*Entities.xml,*Views.xmland*Extensions.xmlfiles. Entity ECA rules live directly underentity/. Seed records usually live in<seed-data>blocks with their definitions. Seed-only*Data.xmlextensions place records that need a different load order. Root entity files load first, then each domain's files, in name order. - Additional data (
data/), grouped by domain within four load phases:10-seed/holds required reference records and repeatable migrations.15-seed-initial/holds initial settings that a deployment can change. Omit this type on routine seed reloads.20-install/holds installation defaults to review or customize before loading, including regional geography, the chart of accounts and its posting mappings.30-demo/holds Ziziwork Industries and example integrations for demo, development and tests. The loader reads a directory's files in name order, then visits each subdirectory in name order, depth first. The XML root'stypeselects which records load. Seed grants need theMANTLE_USER_ORGandMANTLE_ACTIVE_ORGfilter sets. Their definitions load first in10-seed/, and their customizable filter rules load in15-seed-initial/.
- The Universal Service Library (
service/mantle/<package>/): the business logic, in service XML with JavaScript, by package:account,ledger,order,party,product,facility,shipment,work,humanres,request,sales,marketing,forum,smithy,public,pass,searchandother. The ECA rules that tie them together (an invoice posting to the ledger, for one) are inservice/, with the REST API inmantle.rest.xml. - Integrations, apart from the packages whose interfaces they implement:
- bank files (NACHA, Positive Pay, BAI, OFX) in
service/mantle/ext/account/; - payment processors in
ext/account/gateway/: Authorize.Net, PayTrace; - Shippo for shipping rates and labels in
ext/shipment/, and Google Maps inext/party/; - X12 EDI in
service/mantle/edi/.
- bank files (NACHA, Positive Pay, BAI, OFX) in
- Report definitions (
report/) and email and print templates (template/).
In an mr-moqui checkout, ./moq component-get mr-mantle gets it
alone, and getting an application gets it too. Another component depends on it with:
<depends-on name="mr-mantle"/>Read mr-moqui's AGENTS.md and application practices first.
./moq test mr-mantle # The regression suite (test/), while working
./moq test mr-mantle --spec OrderToCashBasicFlow # One spec
./moq test-apps # Every app component's regression suite, before a commit
./moq accept mr-mantle # The acceptance suite (test/acceptance/), when asked- test/README.md has the suite's layout and notes; the two suites are described in mr-moqui's Build-Test.
- docs/ has the integration guides above, the record of the accounting implementation, and Upgrading: the tables to rebuild in a database kept across a change to an entity's key. Until 0.1.0 the simpler way is to empty the database and load it again.
- plan/payments-shipping-edi.md is the plan the payment, shipping and EDI integrations follow.
This is the Java Moqui components mantle-udm (the data model) and
mantle-usl (the services) in one component named mr-mantle. The two were
ported in forks (Groovy to JavaScript, Spock flows to JavaScript specs run by moqui test), then merged into this
repository with the commit history of both. A component that depended on either now depends on mr-mantle; the
renames are in mr-moqui's
Moqui Java migration notes.
Fixes made here to behaviour carried over from the Java components, candidates to take upstream, are in docs/Upstream-Fixes.md.
The Universal Data Model and the Mantle Business Artifacts are introduced on Mantle's page on moqui.org and in the book Making Apps with Moqui, both written for Moqui Java; the model they describe is the one here. Questions are welcome on the Moqui forum.
CC0 1.0 Universal with a Grant of Patent License. To contribute code, sign AUTHORS.md in a commit from the account that submits the pull request; its Contributing section has the details.