Every example in this repository follows the same structure and can be run the same way.
- Java 21+: verify with
java -version - Maven 3.8+: verify with
mvn -version - Node.js and npm: for the recommended local Conductor CLI
Install the Conductor CLI, start the server, and then run an example:
npm install -g @conductor-oss/conductor-cli
conductor server start
cd examples/<category>/<example>
mvn package -DskipTests
java -jar target/<example>-1.0.0.jarStop the server when finished with conductor server stop.
Each example includes a docker-compose.yml that starts both Conductor and the example:
cd examples/<category>/<example>
docker compose up --buildConductor UI will be available at http://localhost:1234.
Start Conductor:
docker run -d -p 8080:8080 -p 1234:5000 conductoross/conductor:latestBuild and run the example:
cd examples/<category>/<example>
mvn package -DskipTests
java -jar target/<example>-1.0.0.jarcd examples/<category>/<example>
./run.shThe script auto-detects CONDUCTOR_SERVER_URL or defaults to http://localhost:8080/api.
Start workers without running the workflow (useful with CLI or UI):
java -jar target/<example>-1.0.0.jar --workersWith workers running in --workers mode, use the CLI to start workflows:
conductor workflow start \
--workflow <workflow_name> \
--version 1 \
--input '{"key": "value"}'Check status:
conductor workflow get-execution <workflow_id>Install Conductor Skills to give a supported coding agent Conductor workflow and operations guidance:
npm install -g @conductor-oss/conductor-skills
conductor-skills --all| Environment Variable | Default | Description |
|---|---|---|
CONDUCTOR_SERVER_URL |
http://localhost:8080/api |
Conductor server URL |
CONDUCTOR_PORT |
8080 |
Host port for Conductor (Docker Compose only) |
All examples use conductor-oss Java SDK v5:
<dependency>
<groupId>org.conductoross</groupId>
<artifactId>conductor-client</artifactId>
<version>5.0.1</version>
</dependency>Every example follows this layout:
<example>/
├── pom.xml # Maven build (Java 21)
├── run.sh # Launcher script
├── README.md # What this example does
├── Dockerfile # Multi-stage build
├── docker-compose.yml # Conductor + workers
├── src/main/java/
│ ├── *Example.java # Main class
│ ├── ConductorClientHelper.java
│ └── workers/ # Worker implementations
├── src/main/resources/
│ └── workflow.json # Workflow definition
└── src/test/java/
└── workers/ # Unit tests