Skip to main content
Version: 0.0.20

Step 2: Tour the template

Step 2 of 6About 5 minutes

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.

TagMeaning
WriteYour code goes here. You'll edit or add files.
Rename onceContains the template's name. Change it in Step 3, then forget about it.
Keep in syncSeveral files must agree. If you change one, change the others.
Leave aloneWorks 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:

FileWhat it is
node/HelloWorldNodeModel.ktThe node: ports, settings form and the execute() logic.
resources/…/node/HelloWorldNodeModel.doc.mdThe help page the Workbench shows next to the node. The path must match the class's package and name exactly.
test/…/HelloWorldNodeModelTest.ktUnit 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.

FileWhy it matters
AutoConfigure.ktA 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.importsOne 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.ktsIts implementation(project(...)) lines decide which feature modules the worker loads. A module that isn't listed here is never loaded.
node/ package nameNode 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​

SettingWhere it livesRule
Task queueworker/src/main/resources/application.yaml and taskQueue in charts/*/values.yamlMust 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.
featureVersiongradle.properties and appVersion in charts/*/Chart.yamlMust be equal. CI fails otherwise.
continuumPlatformVersiongradle.properties onlyEvery module reads it with property(...). Never hardcode it in a build file.
Module listsettings.gradle.kts, worker/build.gradle.kts and .github/workflows/on-release.yml + build-module.ymlAdd 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:

PluginUsed inGives you
org.projectcontinuum.featurefeature modulesKotlin, Spring dependency management, continuum-commons, test libraries, and the validateContinuumNodeAnnotations check that fails the build if a node lacks @ContinuumNode.
org.projectcontinuum.feature-javaJava feature modulesThe same, for Java.
org.projectcontinuum.workerworker/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.