ONEWEB6.0Docs

Training Manual — Day 1: Understand and build

12 min readLearn

Back to the course overview.


Module 1: What is ONEWEB?#

45 minutesLab: demo only

Key points#

  • Enterprise apps (onboarding, lending, case handling) are slow and inconsistent to build because each piece (data, screens, process, rules, integrations, security, deployment) is built separately.
  • ONEWEB 6.0 is a governed, AI-native application platform: you design the app as structured artifacts and ONEWEB generates the running app.
  • Three ideas: one source of truth (the Kernel), generate-never-hand-edit, governed by default (history, undo, approvals, permissions; AI changes follow the same path).
  • Generates: database tables and migrations, APIs with row policies, screens, a case-handling Work Portal, an admin portal, integration routes, and a deployed process.
  • 5.0 vs 6.0: shared database schemas → one artifact graph; WAR/WildFly → containers; per-designer history → event-sourced history with undo and AI provenance.

Demo (trainer, 10 min)#

Open the loan-onboarding app (UC-1). Show, in order: its Entity, a Form, the Process, a Decision, a Flow, then the running Work Portal with one case. Do not start or submit a parked demo case.

Check questions#

  1. In one sentence, what is ONEWEB 6.0?
  2. Why is generated/ never edited by hand?
  3. Name two things the platform generates besides screens.

Trainer notes#


Module 2: Core concepts#

60 minutesLab 1 (20 min)

Key points#

  • Artifact: one typed, versioned specification (Entity, Form, Page, Process, Decision, Glossary, Flow, Connection, Policy, Content…). The IR is its JSON, defined by a schema.
  • Two renderers, one spec: a designer draws it, a generator runs it.
  • Kernel: an event store. Each change is an event; the current spec is the fold of its events.
  • Composition: a group of changes undone as one step.
  • Lifecycle: draft → publish → promote (live) → archive/restore.
  • Containment: App ⊂ Workspace; a Workspace holds Environments (Dev, Test, Prod) and members.
flowchart TB W["Workspace"] -->|"contains"| A["App"] W -->|"holds"| E["Environments<br/>named by you, such as Dev"] W -->|"holds"| M["Members"]
Containment: App, Workspace, Environments and members
  • Typed tools: every change, from a person, a script or Veda, is a validated, authorized tool call.
  • Principles: fail closed; refuse rather than guess.

Where things are#

Rail, top to bottom: Process, Integration, Application (this is the Page designer), Forms, App Designer, Decision, Case (not installed), Content, Dashboard, Data (Data Studio), Security. There is no Data model icon: the Data model designer opens when you open an Entity. A designer is empty until an artifact of its kind exists.

The Process designer: palette on the left, canvas in the middle, inspector with "Before you deploy" on the right
The Process designer: palette on the left, canvas in the middle, inspector with "Before you deploy" on the right

Lab 1 — Tour and undo#

Goal: find your way around and see that nothing is lost.

  1. Sign in to the Workbench with your learner account.
  2. Open your training workspace and its app (use Open artifact; "Show all apps" reveals the rest).
  3. Open any Entity (the Data model designer opens for it). Look at its fields.
  4. Click a field's Edit, type a sentence in Comment (this is the field's description), and press Save. The comment appears under the field name.
  5. Click the shell's Undo (top bar, left of Redo). The comment disappears.
  6. Click Redo. The comment returns.
  7. Find an artifact's history and identify the event you just made. (Not yet verified: where history is shown. Check the Status tab and the audit trail in the right panel.)
The Data model designer for the customer Entity
The Data model designer for the customer Entity

Check questions#

  1. What is a composition, and why does it matter for Undo?
  2. Which is stored: the current spec or its events?
  3. What is the relationship between a Workspace and an Environment?

Trainer notes#


Module 3: Architecture#

75 minutesLab 2 (25 min)

Key points#

Draw this on a whiteboard and have learners copy it:

Browser → Workbench shell → Kernel facade → Kernel event store → Postgres :5437
                                 │                                  
                                 ├─ generators → generated app
                                 ├─ Hub generator → Camel worker
                                 └─ Deployment Center → deployer → target
flowchart LR B["Browser"] --> S["Workbench shell"] S --> F["Kernel facade"] F --> K["Kernel event store"] K --> P[("Postgres :5437")] F --> G["Generators"] G --> A["Generated app"] F --> H["Hub generator"] H --> C["Camel worker"] F --> D["Deployment Center"] D --> R["Deployer"] R --> T["Target"]
The same picture: from the browser to the database and the targets
Service Job
Postgres :5437 Kernel event store and generated apps' data (:5432 is the 5.0 reference stack, which also holds the BPM engine's schema)
Keycloak :8095 Identity; a realm per organisation
OpenBao Vault: secret values live only here
Jaeger Flow run history
RabbitMQ / Kafka Hub queues and events
BPM engine Runs deployed processes
Mailpit Dev mail
  • Workbench = Module Federation shell; designers are remotes.
  • Two runtimes for Flows (in-app and Hub) from one artifact; parity is proved by execution.
  • Principles: fail closed, refuse rather than guess, every SQL value a bind parameter.

Lab 2 — Find the pieces#

  1. List the services from the course environment sheet and open each one's health or UI page (Keycloak, Jaeger, Mailpit).
  2. In the Workbench, open the Environments tab of your workspace and read the Runtime setup block. Note which services it names.
  3. In your app's Data model, identify the database the app will use.
  4. Draw, on paper, the path of one request: a person clicks Save in a designer → ? → the database.

Check questions#

  1. Why are there two Postgres servers?
  2. Where do secret values live?
  3. Why do the in-app and Hub runtimes both exist?

Trainer notes#


Module 4: Data and screens#

90 minutesLab 3 (35 min)

Key points#

  • Data model designer: Entities with typed fields, keys, relations, indexes, row policies, optional version field for optimistic locking.
  • Editing a field in place reports safe / unsafe / blocked for the app's database with reasons; a dry run writes nothing; a rename is a real rename on every dialect.
  • Forms: blocks, widgets bound to fields, buttons, validation; numbers and dates formatted from the Form's own settings, not hard-coded locales.
  • Glossary: one vocabulary of terms, units and allowed values that a Decision's inputs and outputs bind to.
  • Design system and shell: the look and navigation; generated, never hand-tuned.
flowchart LR F["Form<br/>customer-entry"] -->|"widgets bound to fields"| E["Entity<br/>customer"] D["Decision<br/>input or output"] -.->|"bound to a term"| G["Glossary<br/>customer status"]
What binds to what in the lab: Entity, Form and Glossary

A Form points at an Entity and each widget names one of its fields. A Glossary term is bound by a Decision's input or output (decision_bind_term); no binding from a Form or an Entity field to a Glossary term was found in the schemas, so Lab 3 step 8 (not verified) may not offer one.

Lab 3 — Customer record#

Where "+ New" is. Open your app's project page (Home, then click the app). Open the Artifacts tab and press + New. The New artifact form asks for a Kind (Data model, Glossary, Form, Page, Dashboard, Design system, Process, Decision, Flow, Connection, API policy, Contract, Content, Security roles) and the fields that kind needs. (Run 2026-11-05 against the real Workbench.)

The project page of a new app
The project page of a new app
  1. + New, Kind Data model: Name customer, Table name (filled from the name), First column id, Its type Unique id (UUID), then Create data model. The Data model designer opens with the one column.
  2. In the right panel under Add a field, add fullName (Text, tick Required), email (Text, tick Unique), income (Decimal number) and status (Text, Default value new), pressing Add field each time. The panel closes after each add; press the + Add field button under the table to open it again.
  3. Select id and tick Part of the primary key (the panel warns "No primary key" until you do). A PK badge appears on the row.
The finished customer Entity
The finished customer Entity
  1. + New, Kind Form: Name customer-entry, Data model customer (pick it from the list), Create form. It opens with one block, b-main, and the five unused fields as chips. Click the block; in the right panel under Fields choose an Entity field, keep the Field type (Text box, Number…) and press + Add field. Add fullName, email and income. Set income's number format: not yet verified; look in the widget's settings.
  2. Under Buttons in the block panel, add a Save button; make fullName and email required. (Not yet verified.)

The Forms designer with the Customer block 6. Back in the Data model, click Edit on income, type a Comment, and read the box that appears under it: safe — Safe for a table that already has rows. Checked for postgres. Press Save. 7. Click Edit on email, change Type to Whole number. The box turns red: blocked — postgres cannot change string to integer in place … add a new field, copy the data across and remove the old one. Press Cancel.

A safe change A blocked change 8. Add a Glossary term customer status with values new, active, closed. A term is bound from a Decision's input or output in the Decision designer, not from an Entity field or a Form widget (this lab only creates the term).

Check questions#

  1. What do "safe", "unsafe" and "blocked" mean for a field change?
  2. Where is a number's display format set?
  3. What does binding a Decision input to a Glossary term change about what the rule compares?

Trainer notes#


Module 5: Logic and process#

90 minutesLab 4 (40 min)

Key points#

  • Process: start/end events, user tasks (with a Form), service tasks (call a Flow), gateways, lanes, work parties (roles that hold tasks), SLA, stages.
  • A service task can present only an API key, so a flow with oauth2 gets an engine-facing "door".
  • Decision: inputs, outputs, a FEEL table with a hit policy, tests; rule templates give a form for common conditions.
  • Governance: bind to Glossary terms, hit rates and drift, champion/challenger, four-eyes approval.
  • The entry Form needs the case-correlation field (bpmInstanceId); the designer offers to add it.
flowchart LR S["Start"] --> T["Enter customer<br/>user task"] T --> X["Exclusive<br/>gateway"] X --> A["Auto approve<br/>user task"] X --> R["Manual review<br/>user task"] A --> Z["End"] R --> Z
The lab process: a user task, a gateway and two outcomes

The Decision is not drawn into the process. The stretch goal (the gateway following the Decision's route) is (not verified): a gateway's routes carry an expression condition, and a Decision reaches a process through a service task that calls a Flow; the exact wiring was not checked.

Lab 4 — Approve or review#

  1. + New (project page, Artifacts tab), Kind Decision, Name income-routing, Create decision. A new Decision has no inputs and no outputs. Press + Add input: Name income, Type number, Add input. Press + Add output: Name route, Type string, Add output. The designer opens on the Table view (also Graph and Flow); the Hit policy defaults to First match wins.
  2. Click + Add rule. Give a Rule id (high-income), under WHEN pick income is at least 50000, under THEN type auto in the route box, and press Add rule, then Save if the bar shows unsaved changes. Add a second rule for everything else → review. Trap: if you skip the THEN value the rule is added with an empty route ("—") and nothing is returned.
  3. Click empty canvas so the panel shows the Decision, then under Golden tests press + Add test: a name, a value for income (60000) and the expected route (auto), then Add test. Press Run all. (Run 2026-11-05.)

The Decision designer with the first rule A golden test passes:

The Hit rates area shows a red note ("declares no database of its own") for an app that has none; that is expected in the lab. 4. + New, Kind Process, Name customer-onboarding, Create process. It starts with a Start and an End and the note "Add the first step". In the right panel open Add a step: Kind of step (User task, Service task, Exclusive gateway, Parallel gateway, End), Step name Enter customer, Add step. Then connect: drag from a step's dot to the next step's dot (Start to the task, the task to End). (Run 2026-11-05: both drags created the routes.) Add a gateway and two user tasks ("Auto approve", "Manual review") the same way if time allows.

A new Process, and after adding a step and two routes The connected Process; the inspector now says Ready

  1. Work parties, the Form on a task and the case-correlation field were not exercised yet. If the designer offers Add the correlation field, accept it.
  2. Read the inspector's Before you deploy list; with Start and End connected through one task it reads "Ready".
The Page designer, for comparison: this is "Application" in the rail
The Page designer, for comparison: this is "Application" in the rail

Check questions#

  1. What is a work party?
  2. Why can't a service task call an oauth2 flow directly?
  3. What does a decision test protect against?

Trainer notes#