Unomi 4 · Documentation
Unomi 4 manual: diagrams, theme, and depth
PlantUML in AsciiDoc, a brand-aligned HTML/PDF look, and chapters that finally match the Unomi 4 platform.
Shipping Unomi 4 without a manual that looks and reads like Unomi 4 would leave operators guessing. Over several UNOMI-882 and UNOMI-960 efforts, the project rebuilt how the official manual is authored, rendered, and navigated — from diagram toolchain to CSS theme to whole new chapters.
PlantUML (and GraphViz) in the build
#753 wired
AsciiDoctor Diagram
into manual/pom.xml: asciidoctorj-diagram + PlantUML, with GraphViz available via
GRAPHVIZ_DOT / graphvizdot. CI installs GraphViz so HTML and PDF builds stay reproducible.
Diagrams live
in the AsciiDoc
as [plantuml] blocks — reviewable in pull requests, regenerated on every docs build, no orphaned PNGs in git.
The 4.0.0 manual has
78 PlantUML diagrams
across 31 source files (architecture C4, sequences, upgrade flows, condition evaluation, scheduler, past-event strategies, and more).
[plantuml]
----
@startuml
!include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Component.puml
Container(unomi, "Apache Unomi")
Component(restApi, "REST API", "JAX-RS")
@enduml
----
Local tip: install GraphViz (brew install graphviz / apt-get install graphviz), then
cd manual && mvn -ntp clean install.
build.sh also checks for dot.
Branded HTML & PDF theme
A later slice of #821 (UNOMI-960) replaced the default AsciiDoctor chrome with an Unomi-branded stylesheet that tracks unomi.apache.org:
- Design tokens —
--unomi-primary(#6d5ce7), accent purple, Inter typography - Site nav & footer via docinfo, version badge, hero cover for the HTML book
- Responsive UX — burger nav + bottom TOC sheet under 1024px; desktop sidebar TOC from 1024px
- PDF — dedicated
unomi-theme.ymlundermanual/src/theme/with matching brand assets
Reading the published manual should feel continuous with the project website, not like a separate default book skin.
Content that matches Unomi 4
#783 started the sync of the book, and follow-up work such as #796 (platform upgrade runbooks) and #821 (API docs and validation tooling) brought it to Apache Unomi 4.x and expanded (or heavily refreshed) material that operators actually need:
- Platform story — architecture, security, configuration, clustering, data structures
- Unomi 4.0 — multi-tenancy, task scheduler, OpenSearch notes, condition validation / evaluation, property types
- Migrations — 3.x→4.0 first (data migration with
unomi:migrate, QueryBuilder ID renames, Elasticsearch 9.4.3 or OpenSearch 3.7.0, tenant API keys), then the longer 2.7→4.0 path (Java 17, Elasticsearch 7.x→9.4.3), single-tenant compatibility mode, script authoring - Platform upgrades — dedicated
upgrades/runbooks (Java, Karaf, Elasticsearch, Log4j, CXF/Jackson/Jetty, dependency hygiene, ITs) - Day-to-day APIs — request examples (including explain/tracing), GraphQL, shell commands, JavaScript tracker guide, recipes
- Reference depth — conditions guide and builtin type catalogs (UNOMI-960), past-event conditions, profile tracking
“What’s new” for 4.0 now points readers straight into these chapters. The chapters for the Unomi 3 platform (Java 17, Elasticsearch 9, clustering) stay in the same book, under the 3.0 section.
How to add a diagram
- Edit the relevant
.adocundermanual/src/main/asciidoc/ - Add a
[plantuml](or GraphViz) block next to the prose it illustrates - Build the manual module (GraphViz required for some diagrams)
- Review the generated PNG in the PR like any other source change
Website promotional diagrams stay animated SVG / Mermaid on unomi.apache.org; the manual sticks to PlantUML→PNG so AsciiDoctor HTML/PDF stay self-contained.
Open the latest manual What’s new in 4.0 Browse AsciiDoc on GitHub