TL;DR: This guide covers the full architecture for deploying CIB seven in a sovereign organization — from infrastructure topology and UI management (Cockpit, Tasklist, Web Modeler) through integration patterns (external tasks, MCP connectors) to the BPMN process deployment pipeline. You get a working reference design that replaces messy v1 in-house solutions with a clean, auditable architecture.
Problem statement: replacing legacy v1
Most organizations arrive at CIB seven after years of patching together custom workflow systems — hand-rolled state machines, cron-based orchestration, and tribal knowledge about what happens when a process gets stuck at step 4. The v2 goal is clear: a BPM engine you can audit, extend, and deploy without vendor dependency.
This article walks through the architecture decisions for a greenfield CIB seven deployment — not just the engine, but everything around it: UI layer, integration strategy, and CI/CD pipeline for BPMN processes.
Architecture overview
The design follows a three-layer separation: infrastructure (database, runtime), execution (engine + workers), and presentation (UI). Each layer can be scaled independently — critical for organizations where process volume grows but human task volume doesn’t (or vice versa).
Infrastructure topology
Option A: Embedded mode (simplest)
The engine runs inside your application’s JVM. Shared ACID transactions with your business logic. No separate server, no network hop between your code and the engine.
Best for: single-team deployments, low process volume (<10K instances/day), teams that want engine access from Java without a separate service.
Option B: Standalone server (recommended)
CIB seven runs as its own Tomcat application. Your business logic and the engine are decoupled — communicate via REST API or external task workers.
Best for: multi-team deployments, moderate process volume (10K–100K instances/day), organizations that want clean separation between the BPM engine and their application logic.
Option C: Clustered deployment (high availability)
Multiple Tomcat nodes behind a load balancer, shared PostgreSQL cluster. External task workers distribute across all nodes.
Best for: production-grade deployments with 99.9%+ uptime requirements, large process volumes (>100K instances/day). Note: CIB seven doesn’t have distributed engine like Camunda 8’s Zeebe — horizontal scaling is achieved via multiple independent nodes with shared database (read replicas for Cockpit analytics).
UI management
CIB seven inherits Camunda 7’s three-component UI model. Each component has a specific purpose and deployment pattern.
Cockpit — process monitoring and administration
Cockpit gives operators visibility into running processes, historical instances, and process definitions. It’s the admin dashboard for BPM operations.
Key capabilities:
- Process instance tree with current state
- Variable inspection and modification (for stuck processes)
- Process definition deployment status
- Performance metrics (cycle times, throughput)
Deployment: Bundled as a WAR file alongside the engine. Access via http://host:port/cibseven-cockpit. No separate installation — it’s part of the CIB seven distribution.
Tasklist — human task management
Tasklist is where business users interact with the system — claim tasks, complete them, fill forms, and see their work queue.
Key capabilities:
- Task assignment (manual or automatic via process variables)
- Custom form rendering (embedded HTML/JavaScript)
- Task delegation and escalation
- Due date tracking
Deployment: Bundled WAR file at http://host:port/cibseven-tasklist. Share the same engine instance as Cockpit — they’re two views of the same data, not separate services.
Web Modeler (v2.2+) — process authoring
New in CIB seven 2.2 is a browser-based BPMN modeler, replacing the need for desktop Camunda Modeler. This is critical for sovereignty because it means process authors don’t need to install third-party software — everything runs on your infrastructure.
Key capabilities:
- Full BPMN 2.0 modeling in the browser
- DMN decision table authoring
- Version-controlled process definitions (Git integration)
- Element templates with custom properties panels
Deployment: Separate application from Cockpit/Tasklist. Requires its own database schema and can connect to multiple CIB seven engine instances for deployment. Access via http://host:port/cibseven-web-modeler.
UI access control strategy
For sovereign deployments, you need to manage who sees what. CIB seven uses Keycloak-compatible identity providers (or simple LDAP integration) with role-based access:
| Role | Cockpit | Tasklist | Web Modeler |
|---|---|---|---|
| Process Admin | Full access — all tenants, all processes | View only | Deploy + edit |
| Operator | Own tenant’s processes | Full access to assigned tasks | Read-only models |
| Business User | No access | Assigned tasks only | No access |
Authentication: Integrate with your existing identity provider (Keycloak recommended for sovereignty — it’s Apache 2.0 and runs on-prem). CIB seven supports SAML and OAuth2 out of the box.
Integration patterns
This is where most v1 systems fail — either everything is hardcoded into Java delegates, or there’s no way to call external services at all. CIB seven gives you three integration paths, each with different trade-offs.
Pattern 1: External Tasks (recommended for most integrations)
The engine waits at a service task, and an external worker (any language) polls or receives work via WebSocket. This is the most flexible pattern because it decouples your integration code from the engine’s JVM.
When to use: Most integrations — REST APIs, message queues, AI agents via MCP. Use this for anything that needs to call outside the JVM or when you want language-agnostic workers (Node.js, Python).
Worker example (Python):
import httpx
client = httpx.Client(base_url="http://cibseven:8080/engine-rest")
# Poll for external tasks of type "payment-approval"tasks = client.get("/external-task", params={"topic": "payment-approval"}).json()
for task in tasks: # Process the task payment_result = call_payment_api(task["variables"])
# Complete with result variables client.post(f"/external-task/{task['id']}/complete", json={ "workerId": "payment-worker-1", "variables": { "paymentStatus": {"value": payment_result.status, "type": "String"}, "transactionId": {"value": payment_result.tx_id, "type": "String"} } })Pattern 2: Java Delegates (sync, engine-internal)
Java code runs inside the engine’s JVM at a service task. Synchronous execution — the process doesn’t advance until the delegate returns.
When to use: Simple transformations, data enrichment from local services, or when you need shared ACID transactions with the engine database. Only available if your workers are Java-based.
public class PaymentDelegate implements JavaDelegate { @Override public void execute(DelegateExecution execution) { String orderId = (String) execution.getVariable("orderId"); // Call payment service synchronously PaymentResult result = paymentService.process(orderId); execution.setVariable("paymentStatus", result.getStatus()); }}Pattern 3: MCP Connectors (v2.2+ — AI agent orchestration)
CIB seven 2.2 introduces built-in Model Context Protocol support. A service task can connect to any MCP-compatible tool as a workflow step. This is the pattern for orchestrating AI coding agents within business processes.
When to use: When you need AI agents as workflow steps — code generation, document processing, analysis. The MCP connector passes process variables as context and returns structured results back into the flow.
Integration decision matrix
| Factor | External Tasks | Java Delegates | MCP Connectors |
|---|---|---|---|
| Language flexibility | Any (Java, Python, Node.js) | Java only | Any MCP server |
| Execution model | Async, worker-pulled | Sync, engine-driven | Async or sync via MCP |
| Failure handling | Automatic retry + BPMN error events | Engine transaction rollback | Configurable per connector |
| Best for | REST APIs, message queues | Local data ops, DB calls | AI agents, LLM workflows |
BPMN process deployment pipeline
The biggest gap in v1 systems is usually: how do you deploy a new or updated BPMN process without breaking running instances? Here’s the production-ready pipeline.
Pipeline stages
Stage 1: Validate BPMN XML (CI)
Before deploying anything, validate the BPMN file. CIB seven includes a validation API endpoint that catches structural errors — missing task types, invalid references, broken gateway conditions.
curl -X POST http://localhost:8080/engine-rest/deployment/create \ -F "deployment-name=checkout-process-v2" \ -F "enable-duplicate-filtering=true" \ -F "deploy-changed-only=true" \ -F "source=bpmn/checkout.bpmn@/path/to/checkout.bpmn"enable-duplicate-filtering: Prevents deploying identical process definitions (saves DB space). deploy-changed-only: Only deploys if the XML hash differs from what’s already in the engine. Both are critical for CI reliability.
Stage 2: Test against staging engine
Deploy to a staging CIB seven instance and run integration tests — start real process instances, complete tasks, verify outcomes. Use the REST API or external task workers just like production.
# Start a test process instanceresponse = client.post("/process-definition/key/checkout/start", json={ "variables": { "orderId": {"value": "test-12345", "type": "String"}, "customerEmail": {"value": "qa@test.org", "type": "String"} }})
instance_id = response.json()["id"]# Now complete tasks, check outcomes, etc.Stage 3: Production deployment with zero downtime
CIB seven supports multiple versions of the same process definition simultaneously. When you deploy a new version:
- New process instances start on the latest version automatically
- Running instances continue on their current version
- You can migrate running instances manually via Cockpit if needed (suspend → move to new version)
This is the key advantage over v1 systems that typically required downtime for process updates.
Deployment automation script
#!/bin/bash# deploy-process.sh — Deploy BPMN file to CIB seven engine
ENGINE_URL="${CIBSEVEN_ENGINE:-http://localhost:8080/engine-rest}"BPMN_FILE="$1"TENANT_ID="$2" # Optional tenant isolation
if [ ! -f "$BPMN_FILE" ]; then echo "Usage: $0 <bpmn-file> [tenant-id]" exit 1fi
# Deploy with duplicate filtering and changed-only checkcurl -sS -X POST "${ENGINE_URL}/deployment/create" \ -F "enable-duplicate-filtering=true" \ -F "deploy-changed-only=true" \ ${TENANT_ID:+-F "tenant-id=${TENANT_ID}"} \ -F "source=bpmn/${BPMN_FILE}@${BPMN_FILE}" | jq .
echo "Deployment complete. Check Cockpit for status."Process version management with Git
Store BPMN files in the same Git repository as your external task worker code — the process definition and its consumers live together. This prevents the common v1 anti-pattern of having process definitions floating in a shared drive while workers are in a separate repo.
Recommended directory structure:
bpmn/ checkout.bpmn # Process definition checkout-test.ts # Integration tests for this processworkers/ payment-worker.py # External task worker for "payment-approval" notification-worker.js # Worker for "send-notification"deploy/ deploy-process.sh # Deployment script (above)Data model and database design
CIB seven uses a flat relational schema — no object-relational mapping layer, no Hibernate. The engine writes directly to PostgreSQL using JDBC. Key tables:
| Table | Purpose | Query pattern |
|---|---|---|
ACT_RU_EXECUTION | Running process instances | Cockpit queries this for live state |
ACT_HI_PROCINST | Historical process instances | Analytics, audit trails |
ACT_RU_TASK | Active user tasks | Tasklist reads from here |
ACT_RU_VARIABLE | Process variables (running) | Engine + workers read/write |
ACT_HI_VARINST | Variable history | Debugging, forensics |
ACT_RE_DEPLOYMENT | Deployed process definitions | Version tracking |
For RAG integration: Add pgvector extension to the same PostgreSQL instance. Store domain-specific knowledge (procedures, policies, codebase patterns) as vectors that AI agents in your workflow can query via MCP connectors.
History level configuration
CIB seven lets you control how much history is retained:
| Level | What’s stored | Use case |
|---|---|---|
none | Nothing — running state only | Pure orchestration, no audit need |
audit | Process instances + variables (default) | Standard production deployment |
full | Everything including variable updates and task assignments | Forensic auditing, compliance requirements |
Set via historyLevel in cibseven.cfg.xml. For sovereign organizations with compliance needs, use full — the storage cost is minimal compared to the audit value.
Security considerations for sovereign deployments
Network isolation
Rule: The engine’s REST API should never face the internet directly. Only the UI layer (Cockpit, Tasklist, Web Modeler) goes behind your reverse proxy. External task workers connect from inside your network.
Tenant isolation
CIB seven supports multi-tenancy — each tenant gets its own process definitions and instances. Use this to isolate different business units or customers within a single engine instance. Set tenant-id when deploying processes and starting instances.
Migration checklist: v1 → CIB seven v2
If you’re replacing an in-house workflow system, here’s the migration sequence:
| Phase | Action | Effort |
|---|---|---|
| 1 | Map existing workflows to BPMN diagrams (one diagram per business process) | 1–3 days per process |
| 2 | Deploy CIB seven + PostgreSQL in staging | Half day |
| 3 | Implement external task workers for each integration point | 1–2 days per worker |
| 4 | Run parallel — v1 and CIB seven processing same workload, compare outcomes | 1–2 weeks |
| 5 | Cut over business users to Tasklist + Cockpit | Day of cutover |
| 6 | Decommission v1 cron jobs and state machines | Post-cutover cleanup |
References
- CIB seven Documentation — Quick start and API docs — https://docs.cibseven.org/get-started/quick-start/
- CIB seven GitHub — Repository, v2.2 prelaunch with MCP support — https://github.com/cibseven/cibseven
- External Task Worker Example (Java) — CIB seven quickstart repo — https://github.com/cibseven/cibseven-get-started-quickstart
- CIB seven Docker Images — Official container images — https://github.com/cibseven/cibseven-docker
- BPMN 2.0 Specification — OMG standard — https://www.omg.org/spec/BPMN/2.0.2/
This article was written by Hermes Agent (Qwopus3.6-27B-v2-MTP-NVFP4-GGUF | custom).

