For the complete documentation index, see llms.txt.
Skip to main content
Version: 8.10

Run your first BPMN process with Camunda 8

Run your first fully-automated BPMN process locally with Camunda 8.

About​

In this guide, you’ll deploy and run a Rocket Launch BPMN process where you play mission control: you provide a fuelLevel variable, and the Camunda 8 engine runs the launch sequence end-to-end:

  1. Start the launch sequence.
  2. Run a pre-flight check.
  3. Decide whether systems are GO or NO-GO.
  4. If GO: plot the destination via a DMN decision.
  5. Generate a mission report and complete the mission.
  6. If NO-GO: cancel the mission and end the process.

After completing this guide, you will have a BPMN process running locally in Camunda 8 and understand how basic concepts, such as variables, DMN, and FEEL expressions, work together in an automated BPMN workflow.

Prerequisites​

To set up Camunda 8 locally with the Camunda CLI (recommended), install Node.js 22.18 or later.

Step 1: Set up Camunda 8 locally​

In this step, you'll set up a local Camunda 8 environment with the following components:

  • Camunda 8 Run: A simplified, single-application Camunda configuration for a local development environment.
  • Desktop Modeler: An application for modeling BPMN, DMN, and Forms.
  • Getting started project: Example projects, including the Rocket Launch process used in this guide.
  1. Install the Camunda CLI. It requires Node.js 22.18 or later.

    npm install -g @camunda8/cli
  2. Run the guided setup, and keep Local cluster, Desktop Modeler, and Example project selected:

    c8ctl setup

The setup downloads and starts Camunda 8 Run, installs Desktop Modeler, and creates the Rocket Launch project in a rocket-launch folder in your current directory. It then deploys the project and starts a process instance, so you can skip to Step 3: Explore your process in Operate.

Step 2: Deploy and run your model​

note

If you set up your local Camunda 8 environment using the Camunda CLI, your model is already deployed and running. You can still follow these steps to start more instances from Desktop Modeler.

  1. Open Desktop Modeler.
  2. Click File, then Open File to open the process model rocket-launch.bpmn. With c8ctl setup, it's in the rocket-launch folder. With the manual setup, it's in the 1-rocket-launch folder of the extracted example projects.
  3. Deploy your model by clicking the rocket icon in the bottom toolbar. You can use the pre-configured c8run (local) connection and click Deploy Camunda Project. This automatically deploys all resources in the project, including the DMN decision table.
  4. Click the play icon in the bottom toolbar to start a new process instance.
  5. Run the model instance by setting the input mission variables. For example:
{ "missionName": "Odyssey", "fuelLevel": 95 }

Step 3: Explore your process in Operate​

  1. Navigate to Operate at http://localhost:8080/operate and log in using the demo / demo credentials.
  2. Find the Rocket Launch process and click your running instance.
note

Data needs to sync to Operate, so your process instance may not be visible immediately.

Watch the timer​

Your process instance pauses at the Countdown T-10 task for 10 seconds. Open the instance in Operate and watch the token — the marker showing the current point of execution — move through the countdown in real time.

Inspect variables​

Click a completed instance in Operate and open the Variables panel. You can see the variables the process created, such as destination, fuelAfterBurn, and missionResult.

Compare the variables between a successful launch and a canceled mission to see how the process logic sets different values.

Step 4: Try different scenarios​

Start additional process instances in Modeler with different fuelLevel values. Here’s what happens based on your fuelLevel input:

fuelLevelWhat happens
>= 90Launch proceeds — destination set to Venus (5 experiments)
76 – 89Launch proceeds — destination set to Mars (5 experiments)
75Launch proceeds — destination set to Mars (3 experiments)
50 – 74Launch proceeds — destination set to Moon (3 experiments)
< 50Mission canceled — the process ends on the cancellation path
tip

Go to Operate to compare how each process instance takes a different path.

Step 5: Understand how it works​

The process uses no external code. All logic is expressed using FEEL expressions in script tasks and a DMN decision table.

TaskFEEL expressionOutput variable
Pre-flight checkif fuelLevel >= 50 then "ALL SYSTEMS GO" else ... (sets status to cancel)systemStatus
Cancel mission"Mission " + missionName + " scrubbed — not enough fuel (" + string(fuelLevel) + "%)"missionResult
Plot destinationDMN table: >= 90 → Venus, >= 75 → Mars, >= 50 → Moondestination
Burn stage 1fuelLevel - 25fuelAfterBurn
Run experimentsif fuelLevel > 75 then 5 else 3experimentsRun
Mission report"Crew " + missionName + " reached " + destination + "! Fuel: " + string(fuelAfterBurn) + "%. Experiments: " + string(experimentsRun)missionResult

Fixed rules work when you know the decision in advance, as in this launch sequence. When a step needs judgment you can't express as a deterministic rule, you can hand that step to an AI agent instead. The engine runs, retries, and records the agent step in the same way as the script tasks and DMN decision in this process.

Step 6: Clean up​

Navigate back to Operate and verify that your process instances have completed successfully (or were canceled, depending on the fuel level).

You can now stop your Camunda 8 Run local environment:

c8ctl cluster stop

Next steps​

Now that you've run your first BPMN process in Camunda 8, explore more of the platform: