How orion-automation/orion-engine works
1. System shape
ORION Engine is a single deployable Spring Boot application with an embedded Vue frontend. The backend provides the runtime, security, persistence, and REST entry points; the frontend provides the user-facing design and operations console for process orchestration, decision management, and task handling.
2. Build and deployment boundary
The project is Maven-based and produces an executable JAR. The frontend lives under src/main/frontend and is built into the application artifact, so the browser UI and backend API are shipped together. CI workflows also indicate a packaged executable release flow.
3. Backend core
The Java backend is intentionally small in this repo: a main application class, one inbound controller, and a configuration layer. Most domain capability appears to be assembled through Spring, Camunda-related integrations, plugins, and database configuration rather than large custom business services in this repository.
4. Backend infrastructure concerns
The config package covers authentication, CORS, datasource setup, MyBatis-Plus integration, enum scanning, and initialization of default groups/tenants. This tells you the backend is responsible for bootstrapping the runtime environment and enforcing access control before requests reach the engine APIs.
5. Persistent data and migration
Persistence is database-backed and migration-oriented. The README lists support for H2, MySQL, PostgreSQL, and Oracle, while src/main/resources/changelog suggests schema evolution is managed through changelog files. Tests also include seed/query/update JSON fixtures and SQL cleanup scripts, indicating data-driven integration testing around the engine APIs.
6. Frontend application structure
The Vue frontend is split into three runtime shells: desktop, mobile, and a viewer mode (main.js, main.mobile.js, main.viewer.js). Layouts and routers are separated the same way, which means the UI architecture is not one monolithic SPA but a set of mode-specific shells sharing common components and stores.
7. Primary UI domains
The UI is organized by business function:
- Design: applications, collaboration, knowledge, pages/forms
- Automation: BPMN/DMN viewing, deployment, process and decision inspection
- Task: user task lists, task detail, mobile task handling, guest access
- Admin: users, groups, tenants, authorization, settings, licensing
- Login/Home: entry and landing pages
This separation is important for an architecture diagram because each domain maps to a distinct navigation and API surface.
8. Process and decision modeling subsystem
A major subsystem is the in-browser modeler stack for BPMN and DMN. The repo includes custom wrappers around bpmn-js, DMN viewers, modeler helpers, descriptors, and provider plugins. This is where process diagrams and decision logic are created, edited, validated, and saved back through the API layer.
9. Form and low-code rendering subsystem
The formio directory contains custom components such as list, datatable, kanban, stepper, and timeline widgets, each with form definitions and edit forms. This shows the product is also a low-code UI builder/runtime, not just a workflow console. These components are reused across design and task flows to render dynamic business forms.
10. Shared frontend services and state
API modules are grouped by backend resource (process, decision, task, instance, user, tenant, group, job, signal, message, batch, etc.), all funneled through a shared request utility. Global concerns such as authentication, permissions, localization, and app state are handled by store, permission.js, auth.js, and i18n, which form the client-side boundary around all business features.
11. External/plugin-driven capabilities
The README lists installed plugins for email incident notification, external launching, collaboration, application management, delegation, user settings, and process drafts, plus Camunda Connect and Spin. Architecturally, this means core behavior is extended through plugin-style integrations rather than hard-coding every domain capability in the repo itself.
12. What to show in a diagram
The clearest architecture is: browser shells (desktop/mobile/viewer) → shared Vue UI and API modules → Spring Boot REST and security/config layer → workflow/decision engine and plugins → database. Around that core, the modeler/form-rendering subsystems are the main differentiators, because they handle the creation and execution of BPMN/DMN artifacts and low-code business UI.
Main entry points: OrionAutomationApplication.java Engine App · components Business UI · OrionProcessDefinitionController.java Process API · request.js API client
Components 19
Backend
Spring Boot runtime, security, persistence, and REST entry points.
- Engine App · Executable application bootstrap and startup wiring.
src/main/java/com/eorion/bo/engine/OrionAutomationApplication.java - Process API · Inbound controller exposing engine-facing HTTP endpoints.
src/main/java/com/eorion/bo/engine/adapter/inbound/OrionProcessDefinitionController.java - Auth filter · Authentication and request protection for engine APIs.
src/main/java/com/eorion/bo/engine/config/AuthenticationConfiguration.java - Datasource · Database setup and runtime datasource wiring.
src/main/java/com/eorion/bo/engine/config/DatasourceConfiguration.java - MyBatis Plus · MyBatis-Plus integration and insert/update handling.
src/main/java/com/eorion/bo/engine/config/MyBatisPlusConfig.java - Seed tenants · Default group and tenant initialization at startup.
src/main/java/com/eorion/bo/engine/config/InitialGroupTenantConfiguration.java - CORS · Cross-origin request policy for browser clients.
src/main/java/com/eorion/bo/engine/config/CorsConfigurationProperties.java - Enum scan · Package scanning for enum and type metadata.
src/main/java/com/eorion/bo/engine/config/TypeEnumsPackageScanner.java - Engine plugins · Plugin-driven capabilities such as collaboration, notifications, launchers, and drafts.
README.md - Database · Multi-database persistence with changelog-managed schema evolution.
src/main/resources/changelog/master-changelog.yaml
Frontend
Mode-specific Vue shells, shared UI, and API clients.
- Vue entry · Build entrypoints for desktop, mobile, and viewer shells.
src/main/frontend/src/main.js - Routers · Mode-specific routing for desktop, mobile, and viewer UI shells.
src/main/frontend/src/router/index.js - Store · Shared client state for common, local, page, geo, and user data.
src/main/frontend/src/store/index.js - API client · Shared request utility and resource-specific API modules.
src/main/frontend/src/utils/request.js - Auth guard · Permission and authentication boundary on the browser side.
src/main/frontend/src/permission.js - UI shells · Desktop, mobile, and viewer application shells.
src/main/frontend/src/layout/index.vue - Business UI · Design, automation, task, admin, login, and home views.
src/main/frontend/src/components
Modeling
Process and decision modeling stack.
- Modeler stack · BPMN and DMN modeling, validation, and viewer plugins.
src/main/frontend/src/components/common/modeler
Low-code UI
Dynamic form and widget rendering subsystem.
- Form runtime · Custom Form.io components for list, table, kanban, stepper, and timeline UI.
src/main/frontend/src/formio
Connections 22
- Vue entry → UI shells: boots · Creates the desktop, mobile, and viewer runtime shells.
- UI shells → Routers: navigates · Routes users into mode-specific application areas.
- Routers → Business UI: loads · Opens the feature domains for design, automation, task, admin, and entry pages.
- Business UI → API client: calls · Uses shared API modules to reach backend resources.
- API client → Process API: REST · Browser features communicate with the Spring Boot API layer.
- Auth guard → API client: guards · Authentication and permission checks wrap API usage.
- Store → Business UI: feeds · Shared state supports feature screens and navigation.
- Business UI → Modeler stack: uses · Design and automation views rely on BPMN and DMN tooling.
- Business UI → Form runtime: renders · Task and design flows reuse dynamic form widgets.
- Modeler stack → Process API: saves · Modeled process and decision artifacts are persisted through backend APIs.
- Form runtime → API client: fetches · Form widgets load data and submit runtime actions through shared API modules.
- Engine App → Auth filter: wires · Application startup activates security configuration.
- Engine App → Datasource: wires · Application startup activates database configuration.
- Engine App → MyBatis Plus: wires · Application startup activates ORM integration.
- Engine App → Seed tenants: initializes · Application startup seeds default groups and tenants.
- Engine App → CORS: wires · Application startup configures browser access policy.
- Engine App → Enum scan: wires · Application startup scans type metadata packages.
- Process API → Database: persists · REST operations ultimately read and write database-backed engine state.
- Datasource → Database: connects · Datasource configuration points the application to the persistent store.
- MyBatis Plus → Database: maps · ORM layer translates domain data to database operations.
- Seed tenants → Database: seeds · Initial groups and tenants are stored in the database.
- Engine plugins → Process API: extends · Installed plugins augment engine behavior exposed through the API surface.