Step 2: Tour the template
The template has about 40 files, but you will only write code in a handful of them. This page shows which ones, and why the rest exist.
The big pictureβ
Your repository builds one worker. The worker is a small Spring Boot app that loads one or more feature modules. A feature module is a Gradle library that contains your node classes. The template ships two example modules, one in Kotlin and one in Java. You keep the one you write in and delete the other in Step 3.
At startup the worker finds every class annotated with @ContinuumNode, listens on its own Temporal task queue for work, and announces each node to the platform so it shows up in the Workbench palette.
Where things areβ
Each file or folder below is tagged with what you need to do with it.
| Tag | Meaning |
|---|---|
| Write | Your code goes here. You'll edit or add files. |
| Rename once | Contains the template's name. Change it in Step 3, then forget about it. |
| Keep in sync | Several files must agree. If you change one, change the others. |
| Leave alone | Works as shipped. |
continuum-feature-template/
βββ gradle.properties Keep in sync platform + feature versions
βββ settings.gradle.kts Rename once project name + list of modules
βββ build.gradle.kts Leave alone
β
βββ features/
β βββ continuum-feature-hello/ Rename once a feature module (Kotlin)
β βββ build.gradle.kts Rename once group, description
β βββ src/
β βββ main/kotlin/β¦/example/
β β βββ AutoConfigure.kt Rename once tells Spring where your nodes are
β β βββ node/
β β βββ HelloWorldNodeModel.kt Write β your node
β βββ main/resources/
β β βββ META-INF/spring/β¦AutoConfiguration.imports Rename once
β β βββ β¦/node/HelloWorldNodeModel.doc.md Write β help page
β βββ test/kotlin/β¦/HelloWorldNodeModelTest.kt Write β unit test
β
βββ features/continuum-feature-hello-java/ Rename once same layout in Java; delete whichever example you don't need
β
βββ worker/
β βββ build.gradle.kts Keep in sync which modules the worker loads, image name
β βββ src/main/
β βββ kotlin/β¦/App.kt Leave alone Spring Boot entry point
β βββ resources/application.yaml Keep in sync task queue, app name
β
βββ charts/continuum-feature-template/ Keep in sync Helm chart for Kubernetes
βββ docker/ Leave alone local Continuum stack
βββ .github/workflows/ Keep in sync CI and release (lists your modules)
βββ README.md, CONTRIBUTING.md, AGENTS.md Rename once still describe the template
The files that matterβ
Files you writeβ
These three live side by side in each feature module and share a name. The Java module has the same layout, with HelloJavaNodeModel and .java files:
| File | What it is |
|---|---|
node/HelloWorldNodeModel.kt | The node: ports, settings form and the execute() logic. |
resources/β¦/node/HelloWorldNodeModel.doc.md | The help page the Workbench shows next to the node. The path must match the class's package and name exactly. |
test/β¦/HelloWorldNodeModelTest.kt | Unit test. Runs without Spring, Kafka or Docker. |
Files that connect your nodes to the platformβ
If you get one of the first three wrong, the build still passes but the worker starts with no nodes, and nothing in the build output tells you why. These are the most common reasons a new node doesn't appear.
| File | Why it matters |
|---|---|
AutoConfigure.kt | A small @Configuration + @ComponentScan class. It makes Spring scan your package for nodes. Your node classes must live in this package or below. If basePackages doesn't cover your node's package, the node isn't found. |
META-INF/spring/β¦AutoConfiguration.imports | One line naming the AutoConfigure class. Spring Boot reads this file to find your module. If the file is missing or names the wrong class, Spring doesn't load your module. |
worker/build.gradle.kts | Its implementation(project(...)) lines decide which feature modules the worker loads. A module that isn't listed here is never loaded. |
node/ package name | Node classes belong in a package ending in .node. The platform derives your feature ID by removing that last segment. (Other package names still load; the feature ID is then the whole package.) |
If a node doesn't appear after Step 5, follow the checklist in Troubleshooting.
Files that must agree with each otherβ
| Setting | Where it lives | Rule |
|---|---|---|
| Task queue | worker/src/main/resources/application.yaml and taskQueue in charts/*/values.yaml | Must be unique across all workers and identical in both files. Two workers on one queue means Temporal can hand a node to a worker that doesn't have it. |
featureVersion | gradle.properties and appVersion in charts/*/Chart.yaml | Must be equal. CI fails otherwise. |
continuumPlatformVersion | gradle.properties only | Every module reads it with property(...). Never hardcode it in a build file. |
| Module list | settings.gradle.kts, worker/build.gradle.kts and .github/workflows/on-release.yml + build-module.yml | Add or rename a module in all four. |
Files you can ignoreβ
docker/: the local stack from Step 1. It has nothing of yours in it.gradlew,gradle/: the Gradle wrapper.App.kt: three lines that start Spring Boot.charts/β¦/templates/: Helm templates. You only touch them to rename (Step 3).
What the Gradle plugins do for youβ
You don't declare Spring, Temporal, Jackson or test dependencies. The three Continuum plugins add them:
| Plugin | Used in | Gives you |
|---|---|---|
org.projectcontinuum.feature | feature modules | Kotlin, Spring dependency management, continuum-commons, test libraries, and the validateContinuumNodeAnnotations check that fails the build if a node lacks @ContinuumNode. |
org.projectcontinuum.feature-java | Java feature modules | The same, for Java. |
org.projectcontinuum.worker | worker/ | Spring Boot, the worker starter (Temporal polling and node registration), bootRun, and Jib for the container image. |
Add a dependencies { } block to a feature module only when your node needs an extra library; see Add a library. The plugin versions are the continuumPlatformVersion in gradle.properties (see the version note in the overview). For every setting and the other plugin IDs, see the Gradle plugin reference.
Next: rename the template.