For the complete documentation index, see llms.txt.
Skip to main content
Version: 8.11 (unreleased)

Run your first Spring Boot, Node.js, Python, or C# project with Camunda 8

A step-by-step example for Camunda 8 Self-Managed using Spring Boot, Node.js, Python, or C#.

About​

This guide is tailored for developers who want to implement process automation solutions using Java (Spring), JavaScript (Node.js), Python, or C#. You'll work with a local, self-managed, lightweight Camunda 8 environment.

Get started with an example project​

You will:

  • Run Camunda 8 in a local development environment using Camunda 8 Run.
  • Use the Desktop Modeler to deploy and start a business process.
  • Run workers written in one of:
    • The Spring (Java) SDK,
    • The Node.js (JavaScript) SDK,
    • The Python SDK, or
    • The C# SDK
      to handle tasks in the process.

Prerequisites​

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

To run the example project, install the tools required for your programming language:

Set up Camunda 8 locally​

In this section, 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.
  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 and Desktop Modeler selected:

    c8ctl setup

    The setup downloads and starts Camunda 8 Run and installs Desktop Modeler.

Example project​

The example project, located in the camunda-8-get-started/2-order-process-with-service-workers directory, contains a BPMN process model that represents a simple e-commerce flow with three service tasks.

Example business process

The service tasks in the process are executed by job workers. The java, nodejs, python, and csharp directories inside 2-order-process-with-service-workers contain code for job workers that correspond to this process model.

Clone the getting started project to get the example project:

git clone https://github.com/camunda/camunda-8-get-started.git

If you don't use Git, download the project as a ZIP file, extract it, and rename the extracted camunda-8-get-started-main folder to camunda-8-get-started.

Instructions​

  1. Open Desktop Modeler.

  2. In Desktop Modeler, click File > Open File

  3. Select camunda-8-get-started/2-order-process-with-service-workers/bpmn/order-process.bpmn

  4. Click the "Rocket" icon to connect to your Camunda 8 Run instance and deploy the model. You can use the pre-configured c8run (local) connection.

  5. Click the “Play” icon on the bottom toolbar of Desktop Modeler to deploy and start an instance of the process model.

    You do not need to set any variables for the process.

    Optionally, you can set a value for the item variable by pasting in:

    {"item": "special widget"}

    Start a new process instance in Desktop Modeler

View the process instance and start job workers​

A process instance is now running in the engine.

You can view the process instance in Operate, the visual operations tool:

  1. Navigate to: http://localhost:8080/operate
  2. Login with the credentials: demo / demo.

There you will see an active process instance.

note

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

Additionally, when the workers are running, process instances will be completed immediately and further process instances will not appear as active.

Active process instance visible in Operate

Next, start the job workers to allow them to perform the work for the service tasks. The workers are configured to connect to the locally-running engine and retrieve available work for the process instance.

  1. Change into the Spring SDK directory:

    cd camunda-8-get-started/2-order-process-with-service-workers/java
  2. Start the workers with the command:

    mvn spring-boot:run
  3. You can stop the application via Ctrl+C.

The workers start, connect to the engine, and request work. You will see the workers processing the jobs for the process instance.

Complete!​

Navigate back to Operate and verify that your active process instance in Operate has transitioned to completed.

Summary​

You have completed your first process instance by:

  1. Running Camunda 8 Run locally.
  2. Deploying a process model.
  3. Starting a process instance.
  4. Completing the service tasks in the process instance using job workers.

Next steps​

To learn more about our SDKs, visit their respective documentation pages:

Teardown​

You can stop Camunda 8 Run:

c8ctl cluster stop