How temporal-sa/temporal-money-transfer-java works
Project Type & Purpose
• This is a sample “money transfer” workflow application built on the Temporal Java SDK.
• It demonstrates core Temporal concepts (workflows, activities, signals, updates, retries, schedules) and includes:
• A Worker process (executes workflows & activities)
• A Web Server (starts workflows, lists/renders status, sends signals/updates)
• A Svelte-based UI served as static assets
• An optional Spring Boot sample illustrating REST integration
• The project also includes Docker/Kubernetes configs and CI pipelines for deploying to a Temporal Server (local or cloud).
File Structure Analysis
• Top-level modules:
• core/ – main Java module: Temporal workflows (io.temporal.samples.moneytransfer.*), Activities, Worker (AccountTransferWorker), Web Server (WebServer.java), static UI under src/main/resources/svelte_ui/build
• springboot/ – Spring Boot sample with Controllers, Workflows & Activities (HelloWorld), templates, metrics
• Deployment & build:
• Dockerfile at root + docker/compose/K8s samples under sample-kubernetes-config/
• CI: .buildkite/pipeline.yml, GitHub Actions in .github/workflows/
• Config: application.yaml, Gradle build scripts, Gradle wrapper, Temporal namespace/env variables.
Key README Insights
• Components communicate with a Temporal Server (local or Cloud) via gRPC on port 7233.
• ENCRYPT_PAYLOADS flag toggles payload encryption.
• UI is prebuilt in core and served by WebServer; source is in a separate TypeScript repo.
• Spring Boot sample is optional and just shows another hosting model.