How temporalio/spring-boot-demo works
This demo combines a Spring Boot web UI with a Temporal workflow and automatically managed worker. The documented user flow starts a CloudEvents-formatted workflow, signals it to continue, then queries it or retrieves its result. The UI also exposes workflow listing, cluster information, and monitoring links. The README documents local and Temporal Cloud connection options and mentions metrics and tracing, while noting those capabilities are not yet fully updated. Source excerpts were unavailable, so internal call relationships are omitted.
Main entry points: DemoWorkflowImpl.java Demo Workflow · NavProcessor.java Monitoring Links · TemporalSpringbootDemoApplication.java Spring Boot App · application.yml Worker Setup
Components 17
Application Runtime
- Spring Boot App
src/main/java/com/temporal/demos/temporalspringbootdemo/TemporalSpringbootDemoApplication.java - Worker Setup
src/main/resources/application.yml
Workflow Execution
- Demo Workflow
src/main/java/com/temporal/demos/temporalspringbootdemo/workflows/DemoWorkflowImpl.java - Demo Activities
src/main/java/com/temporal/demos/temporalspringbootdemo/activities/DemoActivitiesImpl.java - CloudEvents Converter
src/main/java/com/temporal/demos/temporalspringbootdemo/converter/CloudEventsPayloadConverter.java
Workflow Web UI
- Workflow UI
src/main/resources/templates/temporalwebdialect.html - UI Controller
src/main/java/com/temporal/demos/temporalspringbootdemo/webui/controller/TemporalWebDialectController.java - Temporal Tags
src/main/java/com/temporal/demos/temporalspringbootdemo/webui/dialect/TemporalWebDialect.java - Start Workflow
src/main/java/com/temporal/demos/temporalspringbootdemo/webui/processor/StartWorkflowProcessor.java - List Workflows
src/main/java/com/temporal/demos/temporalspringbootdemo/webui/processor/ListWorkflowsProcessor.java - Cluster Info
src/main/java/com/temporal/demos/temporalspringbootdemo/webui/processor/ClusterInfoProcessor.java - Monitoring Links
src/main/java/com/temporal/demos/temporalspringbootdemo/webui/processor/NavProcessor.java
Connections and Monitoring
- Temporal Server
- Cloud Config
src/main/resources/application-cloud.yml - Grafana
- Jaeger
Other components
- Demo User
Connections 19
- Demo User → Workflow UI: uses
README.md - Workflow UI → Temporal Tags: offers tags
README.md - Demo User → Start Workflow: starts workflow
README.md - Demo User → List Workflows: manages executions
README.md - Demo User → Cluster Info: views cluster
README.md - Demo User → Monitoring Links: opens links
README.md - Spring Boot App → Temporal Server: connects
README.md - Worker Setup → Demo Workflow: auto-discovers
README.md - Worker Setup → Demo Activities: auto-discovers
README.md - Demo Workflow → Temporal Server: executes on
README.md - Demo User → Demo Workflow: signals execution
README.md - Demo User → Demo Workflow: queries execution
README.md - Demo User → Demo Workflow: gets result
README.md - Demo User → CloudEvents Converter: provides CloudEvents
README.md - Spring Boot App → Cloud Config: uses cloud profile
README.md - Monitoring Links → Grafana: links to
README.md - Monitoring Links → Jaeger: links to
README.md - Temporal Server → Grafana: metrics integration
README.md - Temporal Server → Jaeger: tracing integration
README.md