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:
| Element | Purpose |
|---|---|
| Start/End Events | Process boundaries (circles) |
| Tasks | Work to be done — User Tasks need humans, Service Tasks run code |
| Gateways | Decision points — Exclusive (XOR), Parallel (AND), Inclusive (OR) |
| Sequence Flows | Arrows connecting elements in execution order |
| Message/Timer Events | Asynchronous triggers and waits |
| Boundary Events | Exception 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:
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:
- Start Event → Process instance created
- User Task → Waits for human action (stored in DB as a task)
- Service Task → Executes Java code / expression immediately
- Exclusive Gateway → Routes to one path based on process variables
- Parallel Gateway → Splits into concurrent branches, waits for all to join
- 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 positionACT_RU_TASK— Active User Tasks waiting for humansACT_RU_VARIABLE— Process variables in scopeACT_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.
| App | What it does |
|---|---|
| Cockpit | Monitor process instances, see where tokens are stuck, reassign variables, restart failed processes |
| Tasklist | Assign tasks to users, fill in forms, delegate or complete tasks |
| Admin | Manage 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:
| Feature | Camunda 7 CE | CIB seven | Camunda 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:
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:
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 stackversion: "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:
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:
| Approach | Best For | Complexity |
|---|---|---|
| WebSocket (via custom Spring endpoint) | High-frequency updates, collaborative apps | Medium — requires backend bridge |
| Socket.IO Bridge Server | Multiple concurrent users per process | Medium-High |
| Server-Sent Events (SSE) | One-way push from engine to frontend | Low-Medium |
Long Polling (setInterval + fetch) | Simple apps, no infrastructure needed | Lowest |
For most organizations, a simple polling approach suffices:
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:
(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:
- BPMN defines an External Task with
camunda:type="external"andcamunda:topic="credit-check" - A Worker (any language) polls the REST API for tasks on that topic
- The engine locks the task to this worker (default 5 minutes — prevents duplicate execution)
- Worker executes business logic, then calls
/complete,/handle-failure(retry), or/error(create incident)
Node.js External Task Worker
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)
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:
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
| Factor | Java Delegate (Service Task) | External Task |
|---|---|---|
| Language | Java only | Any language |
| Deployment | Must be in engine classpath | Separate service/process |
| Scaling | Scales with engine JVM | Independent horizontal scaling |
| Resilience | Engine crash = lost work | Worker can retry independently |
| Latency | In-process (fast) | Network call (slower) |
| Best for | Simple logic, DB queries, same-team code | External APIs, microservices, polyglot teams |
Message Events vs Signal Events
Both are asynchronous communication mechanisms, but they serve different purposes:
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
| Feature | Message Events | Signal Events |
|---|---|---|
| Correlation | By messageId (one-to-one) | No correlation (broadcast to all) |
| Boundary events | ✅ Supported | ❌ Not supported |
| Scope | Process scope or global | Global 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:
<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:
- Design forms visually in Form.io’s drag-and-drop builder
- The JSON schema is stored and served from Form.io
- A Camunda connector or External Task worker fetches the form data
- 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:
| Strategy | How It Works |
|---|---|
| Path-as-Variable | Store S3/MinIO URL as a process variable; upload/download via connector |
| Connector Pattern | Use Camunda Connectors (MinIO, SharePoint, Google Drive) for declarative file operations |
| CIB coSys | CIB’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:
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:
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
- Camunda 7 Manual v7.24 — Camunda Docs — https://docs.camunda.org/manual/7.24/
- CIB seven — The open source alternative — cibseven.org (2026) — https://cibseven.org/en/
- 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/
- 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
- Camunda Forms Documentation — Camunda Docs (2021+) — https://docs.camunda.org/manual/7.24/user-guide/forms/camunda-forms/index.html
- SoftCannery Accelerator for Form.io + Camunda — GitHub: softcannery — https://github.com/softcannery
- Camunda 8 vs Camunda 7: Migration Guide — Pretius Blog (2024) — https://pretius.com/blog/camunda-7-vs-camunda-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).



