Step 5: Test and run your node
You ran the template unchanged in Step 1. Now run it again with your changes.
1. Build and testβ
./gradlew build
This compiles every module, runs your unit tests, runs validateContinuumNodeAnnotations and builds the worker jar. To run one test class:
./gradlew :features:<repo>:test --tests "*WordCounterNodeModelTest"
validateContinuumNodeAnnotations fails the build when a class extends ProcessNodeModel or TriggerNodeModel without @ContinuumNode. If you see it fail, that's the cause.
2. Run the workerβ
Make sure the local stack from Step 1 is still up (docker compose ps in docker/), then:
./gradlew :worker:bootRun
3. Check the node was loadedβ
The worker logs every node it found when it starts. Look for these two lines in the bootRun output:
Registered process nodes: [com.acme.demo.node.WordCounterNodeModel]
Registered trigger nodes: []
Your node's full class name should be in the list. You can also ask the worker over HTTP:
curl http://localhost:8090/api/v1/node-repo
Your Word Counter should be in the response.
If it isn't, the build passed but the worker didn't find your node. Work through the checklist in Troubleshooting. Most often, one of these is wrong: the module isn't listed in worker/build.gradle.kts, the .imports file names the wrong class or @ComponentScan doesn't cover your package. (A missing @ContinuumNode is rarely the cause, because the build catches it.)
4. Run it in the Workbenchβ
- Open http://localhost:3002. Word Counter appears under Demo.
- Add a table source that has a
textcolumn, such as Create Table, and connect it to Word Counter. - Open the Word Counter settings to see the form you defined, then run the workflow.
- Click the output port. Every row has a new
word_countcolumn. - Open the node's help page in the Workbench. It should show your
.doc.mdcontent. If it reads "Documentation not found", see Step 4.
Locally you don't need to set any environment variables: the worker's defaults match the local stack. When you deploy elsewhere, see the worker configuration reference.
You've now changed the template into your own working worker.
Next: ship it.