Camunda 7 CE & CIB seven: How BPMN Engines Work and How to Build Around Them

·5 min readbpmnself-hosting

TL;DR: Camunda 7 CE is an embeddable BPMN 2.0 process engine that lets organizations model, execute, and monitor business workflows visually — with the External Task pattern as its most powerful integration mechanism for connecting to external systems in any language. CIB seven provides a maintained open-source fork after Camunda 7’s end-of-life, adding modern web interfaces while staying fully compatible.

Business Process Management (BPM) engines have been around since the early 2000s, but few have achieved the developer-friendly adoption of Camunda 7. At its core, Camunda is a Java library that reads BPMN 2.0 XML and executes it — turning visual process models into running workflows with human tasks, automated service calls, timers, and data passing between steps.

For organizations, this means business analysts can model processes in a drag-and-drop editor while developers implement the automation logic separately. The separation of concerns is what makes Camunda 7 so popular across industries — from insurance claims to order processing to government workflows.

This article covers everything: how the engine works under the hood, the CIB seven fork story, deploying modern web frontends alongside it, implementing custom processes with external systems, and handling forms and documents.


What is BPMN 2.0?

BPMN (Business Process Model and Notation) 2.0 is an OMG standard for modeling business processes as diagrams. It’s the UML of workflow — a visual language that both technical and non-technical people can understand.

A BPMN diagram consists of:

ElementPurpose
Start/End EventsProcess boundaries (circles)
TasksWork to be done — User Tasks need humans, Service Tasks run code
GatewaysDecision points — Exclusive (XOR), Parallel (AND), Inclusive (OR)
Sequence FlowsArrows connecting elements in execution order
Message/Timer EventsAsynchronous triggers and waits
Boundary EventsException handling attached to tasks (errors, messages, timers)

The key insight: BPMN 2.0 is both a modeling language AND an executable format. The XML produced by tools like Camunda Modeler is directly consumed by the engine — no translation layer needed.


Camunda 7 CE Architecture

Camunda 7 Community Edition ships as a Java library (camunda-engine) that can be embedded in any Spring Boot application, or deployed as a standalone Tomcat WAR. The architecture consists of four main components:

flowchart TB subgraph Engine[Engine Core] A[Process Engine] --> B[Persistence Layer] B --> C[(PostgreSQL / MySQL / H2)] A --> D[Job Executor] D --> E[Timer Events
Async Continuation] A --> F[Variable Store] end subgraph WebApps[Web Applications WAR] G[Cockpit - Process Monitoring] H[Tasklist - Human Tasks & Forms] I[Admin - Users / Groups / Tenants] end J[REST API
/engine-rest/*] --> A K[External Task Worker
Any Language] --> J L[Camunda Modeler
Desktop App Electron] -.->|BPMN XML| M[Deployment REST API] M --> J

The Engine — Heart of the System

The process engine is a state machine. When you deploy a BPMN model, it becomes a Process Definition (versioned). Each time someone starts that definition, a Process Instance runs through its states:

  1. Start Event → Process instance created
  2. User Task → Waits for human action (stored in DB as a task)
  3. Service Task → Executes Java code / expression immediately
  4. Exclusive Gateway → Routes to one path based on process variables
  5. Parallel Gateway → Splits into concurrent branches, waits for all to join
  6. End Event → Process instance completed

The engine persists state in a set of JPA entities (roughly 27 tables). Key tables include:

  • ACT_RU_EXECUTION — Running process instances and their current position
  • ACT_RU_TASK — Active User Tasks waiting for humans
  • ACT_RU_VARIABLE — Process variables in scope
  • ACT_HI_PROCINST / ACT_HI_ACTINST — History of completed processes (for Cockpit analytics)

The Web Applications

All three apps are AngularJS 1.x + Bootstrap 3 — they ship embedded inside the camunda-webapp WAR, served from /camunda/app/cockpit, /camunda/app/tasklist, and /camunda/app/admin. They share the same Java EE session (JSESSIONID) for authentication.

AppWhat it does
CockpitMonitor process instances, see where tokens are stuck, reassign variables, restart failed processes
TasklistAssign tasks to users, fill in forms, delegate or complete tasks
AdminManage users, groups, tenants, plugins, and engine configuration

These apps call the Camunda REST API via relative URLs — no CORS issues since they’re on the same origin.

The Job Executor

Camunda’s job executor is a background thread pool that handles:

  • Timer Events: Triggers at scheduled times (e.g., “send reminder after 3 days”)
  • Async Continuation: When a Service Task is marked async="true", the engine creates a job to execute it in a separate transaction — critical for long-running external API calls
  • External Tasks: Workers poll via REST, and the engine manages locks (default 5 minutes)

The CIB seven Story: Open Source Continuity

In late 2024, Camunda announced that Camunda 7 Community Edition would reach end-of-life. Existing users faced a choice: migrate to Camunda 8 (a completely different cloud-native platform built on the Zeebe engine) or find an alternative.

The migration to C8 is not trivial — it requires rewriting Java Delegates as External Task workers, switching from JUEL expressions to FEEL, and adopting Kubernetes infrastructure where a simple Spring Boot app used to suffice. For many organizations, this was unacceptable.

CIB seven, created by the German company CIB software GmbH in November 2024, fills that gap:

FeatureCamunda 7 CECIB sevenCamunda 8
Open source✅ Yes (MIT)✅ Yes (Apache 2.0)❌ Commercial only for web apps
Embedded engine✅ Yes✅ Yes❌ No — external broker only
Java Delegates✅ Supported✅ Supported❌ Replaced by External Tasks
JUEL expressions✅ Supported✅ Supported❌ Replaced by FEEL
History API (open source)✅ In CE✅ Included❌ Only in Optimize (commercial)
Modern web UI❌ AngularJS 1.x✅ Open-source web interface (v2.0+)✅ React-based

CIB seven 1.0 was based on Camunda 7.22 CE. By version 2.1, it incorporated the final 7.24 codebase. Migration from C7 to CIB seven is straightforward — swap Maven dependencies and update package names (typically com.camunda → com.cib). One architect reported migrating a production system in 30 minutes.

As of mid-2026, CIB seven 2.2 includes:

  • Open-source Web Modeler (browser-based BPMN editor)
  • Spring Boot 4 support and Quarkus integration
  • Enterprise features open-sourced (multi-tenancy, history)
  • CIB ins7ght — a performance analytics tool (the C8 Optimize equivalent)

For organizations wanting to stay on the embedded-engine pattern with modern tooling, CIB seven is currently the most pragmatic choice.


How an Organization Adopts Camunda 7 / CIB seven

A typical adoption lifecycle follows these phases:

flowchart LR A[Phase 1
Model Processes] --> B[Phase 2
Deploy to Engine] B --> C[Phase 3
Implement Workers] C --> D[Phase 4
Build Forms & UIs] D --> E[Phase 5
Monitor & Optimize] A -.->|Iterate| B C -.->|Debug| A

Phase 1: Process Modeling

Business analysts and developers collaborate in Camunda Modeler (an Electron desktop app, open source). The modeler produces BPMN 2.0 XML that is directly executable — no code generation step needed. Teams typically start with 3-5 processes, often:

  • An approval workflow (request → review → approve/reject)
  • An order processing flow (receive → validate → fulfill → ship)
  • A document lifecycle (create → review → sign → archive)

Phase 2: Deployment

BPMN models are deployed via the REST API (POST /engine-rest/deployment/create) or through Java’s RepositoryService. Each deployment increments the process definition version. The engine always routes new instances to the latest version unless you explicitly pin a specific one.

Phase 3: Implementing Automation Logic

This is where developers write the actual business logic. The External Task pattern (covered in depth below) is the recommended approach — it keeps your automation code independent of Java and deployable as separate services.

Phase 4: Building Forms & User Interfaces

Human tasks need UIs. Camunda ships with basic form rendering in Tasklist, but most organizations build custom React/Vue/Astro frontends (see below).

Phase 5: Monitoring & Operations

Cockpit provides real-time dashboards showing process instances, their current state, and historical data. For deeper analytics, CIB ins7ght or Camunda Optimize offers process mining capabilities — identifying bottlenecks, measuring cycle times, and detecting deviation patterns.


Deploying a Modern JS Web App Around the Engine

Camunda’s built-in web apps use AngularJS 1.x — perfectly functional but not what modern teams want for custom interfaces. There are three architectural approaches to deploying a modern frontend alongside Camunda:

flowchart TB subgraph "Approach A: Monolithic" F1[React / Astro Frontend] --> |Embedded in WAR| E1[Camunda Engine + Tomcat] end subgraph "Approach B: Microservices (Recommended)" Nginx[Nginx Reverse Proxy] --> |/camunda/*| E2[Camunda REST API] Nginx --> |/*| F2[React / Astro Frontend
Separate Container] end subgraph "Approach C: Serverless Workers" F3[Astro SPA → Cloudflare Pages] --> |REST API| E3[Camunda on K8s] W1[Cloudflare Worker
External Task Handler] --> E3 end

Approach B: Microservices with Nginx (Most Common)

The cleanest pattern is a separate frontend container behind the same origin as Camunda, eliminating CORS entirely:

# docker-compose.yml — 5-service stack
version: "3.9"
services:
postgres:
image: postgres:16-alpine
environment:
POSTGRES_DB: camunda
POSTGRES_USER: camunda
POSTGRES_PASSWORD: camunda
keycloak:
image: quay.io/keycloak/keycloak:25.0
command: start-dev --import-realm
environment:
KC_DB: postgres
KC_DB_URL_HOST: postgres
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: admin
camunda:
image: camunda/camunda-bpm-spring-boot-starter-rest:7.24.0
environment:
SPRING_DATASOURCE_URL: jdbc:postgresql://postgres/camunda
CAMUNDA_BPM_ADMIN_USERS: admin:admin
depends_on: [postgres]
frontend:
build: ./app # React / Astro app
depends_on: [camunda]
nginx:
image: nginx:1.27-alpine
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf
ports: ["80:80"]
depends_on: [camunda, frontend]

The Nginx config serves both from the same origin:

server {
listen 80;
# Camunda REST API and web apps
location /engine-rest/ {
proxy_pass http://camunda:8080/engine-rest/;
proxy_set_header Host $host;
}
# Frontend app (React SPA)
location /app/ {
proxy_pass http://frontend:3000/;
try_files $uri $uri/ /app/index.html;
}
# Camunda built-in apps (Cockpit, Tasklist, Admin)
location /camunda/ {
proxy_pass http://camunda:8080/camunda/;
}
}

Building Forms with React + Tailwind

A typical form that submits to Camunda’s Task REST API:

ClaimForm.tsx
import { useState } from 'react';
interface ClaimFormData {
claimAmount: number;
claimReason: string;
priority: 'low' | 'medium' | 'high';
}
export default function ClaimForm({ taskId }: { taskId: string }) {
const [data, setData] = useState<ClaimFormData>({
claimAmount: 0,
claimReason: '',
priority: 'medium',
});
const handleSubmit = async (e: React.FormEvent) => {
e.preventDefault();
await fetch(`/engine-rest/task/${taskId}`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
variables: Object.entries(data).reduce((acc, [k, v]) => ({
...acc,
[k]: { value: v, type: typeof v === 'number' ? 'Integer' : 'String' },
}), {}),
}),
});
};
return (
<form onSubmit={handleSubmit} className="space-y-4 p-6 max-w-lg mx-auto">
<label className="block text-sm font-medium">Claim Amount</label>
<input
type="number"
value={data.claimAmount}
onChange={(e) => setData({ ...data, claimAmount: +e.target.value })}
className="border rounded px-3 py-2 w-full"
/>
<label className="block text-sm font-medium mt-4">Reason</label>
<textarea
value={data.claimReason}
onChange={(e) => setData({ ...data, claimReason: e.target.value })}
rows={4}
className="border rounded px-3 py-2 w-full"
/>
<select
value={data.priority}
onChange={(e) => setData({ ...data, priority: e.target.value as ClaimFormData['priority'] })}
className="border rounded px-3 py-2 mt-2 w-full"
>
<option value="low">Low</option>
<option value="medium">Medium</option>
<option value="high">High</option>
</select>
<button type="submit" className="bg-blue-600 text-white px-4 py-2 rounded hover:bg-blue-700">
Submit Claim
</button>
</form>
);
}

Real-Time Updates: When Process State Changes

Your frontend needs to know when a process moves forward. Four approaches exist:

ApproachBest ForComplexity
WebSocket (via custom Spring endpoint)High-frequency updates, collaborative appsMedium — requires backend bridge
Socket.IO Bridge ServerMultiple concurrent users per processMedium-High
Server-Sent Events (SSE)One-way push from engine to frontendLow-Medium
Long Polling (setInterval + fetch)Simple apps, no infrastructure neededLowest

For most organizations, a simple polling approach suffices:

useProcessStatus.ts
export function useProcessStatus(processInstanceId: string, intervalMs = 5000) {
const [status, setStatus] = useState<string>('unknown');
useEffect(() => {
const poll = async () => {
const res = await fetch(
`/engine-rest/process-instance/${processInstanceId}`
);
if (res.ok) {
const data = await res.json();
setStatus(data.activityId || 'completed');
}
};
poll();
const timer = setInterval(poll, intervalMs);
return () => clearInterval(timer);
}, [processInstanceId]);
return status;
}

Implementing Custom Processes with External Systems

This is the most critical part of working with Camunda. Your BPMN model defines the flow — but real work happens when you connect to databases, payment gateways, email services, and other systems.

The External Task Pattern: Most Important Integration Method

The External Task pattern is Camunda’s language-agnostic way to integrate with external systems. Here’s how it works:

sequenceDiagram participant Engine as BPMN Engine participant RESTAPI as REST API
(fetchAndLock) participant Worker as External Worker
(Node.js / Python / Go) Note over Engine,Worker: Worker polls for work Worker->>RESTAPI: POST fetchAndLock
workerId, maxTasks, topics RESTAPI-->>Worker: [{ id, processInstanceId, variables }] note over Worker: Worker executes business logic alt Success Worker->>RESTAPI: POST /complete
variables: { approved: true } else Failure (retry) Worker->>RESTAPI: POST /handle-failure
retries: 3, error msg else Error (incident) Worker->>RESTAPI: POST /error
unrecoverable error msg end note over Engine: Engine continues or creates incident

The workflow is simple:

  1. BPMN defines an External Task with camunda:type="external" and camunda:topic="credit-check"
  2. A Worker (any language) polls the REST API for tasks on that topic
  3. The engine locks the task to this worker (default 5 minutes — prevents duplicate execution)
  4. Worker executes business logic, then calls /complete, /handle-failure (retry), or /error (create incident)

Node.js External Task Worker

credit-check-worker.ts
import { Client } from 'camunda-external-task-client-js';
const client = new Client({ baseUrl: 'http://localhost:8080/engine-rest' });
client.subscribe('credit-check', async ({ task, complete }) => {
const orderId = task.variables.get('orderId').value;
// Call external credit API
const response = await fetch(`https://api.credit-service.com/check/${orderId}`, {
headers: { Authorization: `Bearer ${process.env.CREDIT_API_KEY}` },
});
const result = await response.json();
if (result.approved) {
complete({ variables: { creditApproved: true, score: result.score } });
} else {
// Retry up to 3 times with exponential backoff
throw new Error(`Credit check failed for order ${orderId}: ${result.reason}`);
}
});
console.log('Credit check worker running...');

Python Worker (Community SDK)

payment-worker.py
from camunda.external_task import Client, Task
client = Client("http://localhost:8080/engine-rest", "worker-payment")
@client.task(topic="process-payment")
def process_payment(task: Task):
order_id = task.variables["orderId"].value
amount = task.variables["amount"].value
# Call payment gateway
response = requests.post(
f"https://api.stripe.com/v1/charges",
auth=("sk_test_...", ""),
data={"amount": int(amount * 100), "currency": "usd"}
)
if response.ok:
task.complete(variables={
"paymentId": {"value": response.json()["id"], "type": "String"},
"paymentSuccess": {"value": True, "type": "Boolean"}
})

Go Worker (Manual REST)

Go doesn’t have an official SDK — you write the REST calls directly:

notification-worker.go
package main
import (
"encoding/json"
"fmt"
"net/http"
)
type ExternalTask struct {
ID string `json:"id"`
Variables map[string]interface{} `json:"variables"`
}
func fetchAndLock(baseURL, workerID, topic string) ([]ExternalTask, error) {
payload := map[string]interface{}{
"workerId": workerID,
"maxTasks": 10,
"topics": []string{topic},
"lockDuration": 60000, // 1 minute
}
resp, err := http.Post(
fmt.Sprintf("%s/external-task/fetchAndLock", baseURL),
"application/json",
json.NewEncoder(payload),
)
if err != nil {
return nil, err
}
var tasks []ExternalTask
json.NewDecoder(resp.Body).Decode(&tasks)
return tasks, nil
}

Service Tasks vs External Tasks: When to Use Which

FactorJava Delegate (Service Task)External Task
LanguageJava onlyAny language
DeploymentMust be in engine classpathSeparate service/process
ScalingScales with engine JVMIndependent horizontal scaling
ResilienceEngine crash = lost workWorker can retry independently
LatencyIn-process (fast)Network call (slower)
Best forSimple logic, DB queries, same-team codeExternal APIs, microservices, polyglot teams

Message Events vs Signal Events

Both are asynchronous communication mechanisms, but they serve different purposes:

flowchart TB subgraph "Message Event — Point to Point" M1[Process A sends
message orderReceived] --> M2[Correlates by
messageId] --> M3[Process B's Message
Start Event fires] end subgraph "Signal Event — Broadcast" S1[System emits
signal blackFridaySale] --> S2[All listening processes
receive simultaneously] --> S3[Multiple process instances
start in parallel] end
FeatureMessage EventsSignal Events
CorrelationBy messageId (one-to-one)No correlation (broadcast to all)
Boundary events✅ Supported❌ Not supported
ScopeProcess scope or globalGlobal only
Use case“Wait for external event”“Trigger many processes at once”

Forms and Document Management

Human tasks in BPMN need forms — screens where users input data. Camunda has evolved its approach over the years:

Three Approaches to Forms

1. Embedded HTML5 Forms (Legacy)

Deploy plain HTML files alongside your BPMN model. They render inside Tasklist using AngularJS directives for variable binding:

claim-form.html
<form role="form" name="form">
<div class="form-group">
<label>Customer ID</label>
<input required cam-variable-name="customerId"
cam-variable-type="String" class="form-control" />
</div>
<div class="form-group">
<label>Amount</label>
<input cam-variable-name="amount"
cam-variable-type="Double" class="form-control" />
</div>
</form>

Configured via camunda:formKey="embedded:app:forms/claim-form.html" in the BPMN XML. Functional but limited to basic HTML — no validation, no conditional rendering, and tied to AngularJS.

2. Camunda Forms (Modern Built-in)

Introduced in C7 7.14+ as .form JSON schema files with a visual editor in Camunda Modeler:

<bpmn:userTask id="claimReview"
camunda:formRef="claim-review-form"
camunda:formRefBinding="version"
camunda:formRefVersion="1">
</bpmn:userTask>

Benefits: conditional rendering via FEEL expressions, dynamic option lists, inline validation. Deployed independently from process models — you can update forms without redeploying the BPMN.

3. External Forms (Modern Frontend)

The most flexible approach — build forms in React/Vue/Astro and communicate with Camunda via REST API:

<!-- Form key points to external URL -->
<bpmn:userTask id="claimReview"
camunda:formKey="external:http://your-app/claims/review">
</bpmn:userTask>

The external app fetches task data via GET /engine-rest/task/{taskId} and submits via POST /engine-rest/task/{taskId} (as shown in the React example above). This gives you complete UI freedom.

Form.io Integration Pattern

For dynamic forms without custom code, Form.io integrates with Camunda through a well-established pattern:

  1. Design forms visually in Form.io’s drag-and-drop builder
  2. The JSON schema is stored and served from Form.io
  3. A Camunda connector or External Task worker fetches the form data
  4. Process variables are mapped to/from form fields automatically

The softCannery Accelerator provides a Camunda Modeler plugin that lets you embed Form.io forms directly into BPMN models — bridging low-code forms with workflow automation.

Document Management: Don’t Store Files as Variables

A common mistake is storing documents (PDFs, images) as process variables — they become BLOBs in the database and are replicated across all engine instances. Instead:

StrategyHow It Works
Path-as-VariableStore S3/MinIO URL as a process variable; upload/download via connector
Connector PatternUse Camunda Connectors (MinIO, SharePoint, Google Drive) for declarative file operations
CIB coSysCIB’s document management add-on for PDF generation, digital signatures, and template-based documents

For PDF generation from BPMN processes (invoices, contracts), the pattern is: Service Task → Java Delegate reads process variables → generates PDF with iText/OpenPDF/JasperReports → uploads to S3/MinIO via connector.

Multi-Step Form Wizards Across User Tasks

A wizard spanning multiple screens maps naturally to chained User Tasks in BPMN — each step is a separate task, and “Next” completes the current task with variables that flow into the next:

flowchart LR U1[User Task
Step 1: Customer Info] -->|submit → customerId| U2{Exclusive Gateway} U2 -->|customerId valid| U3[User Task
Step 2: Order Details] U2 -->|invalid| E1[Error Event
Go back to Step 1] U3 -->|submit → items, total| U4[User Task
Step 3: Review & Confirm] U4 -->|confirm| S1[Service Task
Create Order in DB]

Each User Task has its own form. The data accumulates across process variables as the user progresses through the wizard. If a validation fails at any step, route back to the appropriate earlier task via an Exclusive Gateway.


A Real-World Example: Order Processing Workflow

Let’s tie everything together with a concrete example — an e-commerce order processing workflow that uses all patterns discussed above:

flowchart TB subgraph BPMN[Order Processing BPMN] Start[Start Event
orderReceived] --> U1[User Task
Verify Customer Info] U1 --> S1{Exclusive Gateway} S1 -->|customerValid = true| ET1[External Task
check-inventory] S1 -->|false| End1[End Event
Rejected] ET1 --> S2{Inventory OK?} S2 -->|yes| ET2[External Task
process-payment] S2 -->|no| M1[Message Start
wait for restock] --> ET1 ET2 --> S3{Payment OK?} S3 -->|yes| U2[User Task
Approve Shipment] S3 -->|no| End2[End Event
Payment Failed] U2 --> ET3[External Task
create-shipment] ET3 --> PDF[Service Task
Generate Invoice PDF] PDF --> ET4[External Task
send-email] ET4 --> End3[End Event
Completed] end subgraph Workers W1[Node.js Worker
check-inventory] -->|REST API| Camunda[(Camunda Engine)] W2[Python Worker
process-payment] -->|REST API| Camunda W3[Go Worker
create-shipment] -->|REST API| Camunda end subgraph Frontend F1[React App
Customer Form →
Shipment Approval] -->|Task REST API| Camunda end

The BPMN model defines the flow visually. Three workers in different languages handle external calls. Two human tasks (customer verification, shipment approval) are rendered as React forms. The invoice PDF is generated by a Java Delegate service task and uploaded to S3. Error handling uses boundary events on each External Task — if a payment fails 3 times, an incident is created for manual review in Cockpit.


References

  1. Camunda 7 Manual v7.24 — Camunda Docs — https://docs.camunda.org/manual/7.24/
  2. CIB seven — The open source alternative — cibseven.org (2026) — https://cibseven.org/en/
  3. BPM evolution 2026: From Camunda 7 via CIB seven to Camunda 8 — onlu.ch (March 15, 2026) — https://onlu.ch/en/bpm-evolution-2025-from-camunda-7-to-cib-seven-cib-flow-to-camunda-8/
  4. camunda-external-task-client-js SDK — GitHub: camunda-community-hub/camunda-external-task-client-js — https://github.com/camunda-community-hub/camunda-external-task-client-js
  5. Camunda Forms Documentation — Camunda Docs (2021+) — https://docs.camunda.org/manual/7.24/user-guide/forms/camunda-forms/index.html
  6. SoftCannery Accelerator for Form.io + Camunda — GitHub: softcannery — https://github.com/softcannery
  7. Camunda 8 vs Camunda 7: Migration Guide — Pretius Blog (2024) — https://pretius.com/blog/camunda-7-vs-camunda-8
  8. Why Migrate from Camunda 7 to Camunda 8 — Camunda Blog (July 2025) — https://camunda.com/blog/2025/07/migrate-from-camunda-7-to-camunda-8/

This article was written by pi (Claude Sonnet | Anthropic).