Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

uniquejava/edu-101-java-code

Repository files navigation

Code Repository for Temporal 101 (Java)

It's important to remember that the example code used in this course was designed to support learning a specific aspect of Temporal, not to serve as a ready-to-use template for implementing a production system.

For the exercises, make sure to run temporal server start-dev --ui-port 8080 --db-filename clusterdata.db in one terminal to start the Temporal server. For more details on this command, please refer to the Setting up a Local Development Environment chapter in the course. Note: If you're using the Codespaces environment to run this exercise, you can skip this step.

Environment

  1. macOS
  2. Intellij IDEA 2025
  3. Java 21
$ temporal server start-dev --ui-port 8080
CLI 1.5.1 (Server 1.29.1, UI 2.42.1)
Server: localhost:7233
UI: http://localhost:8080
Metrics: http://localhost:51289/metrics

例子1 - 定以 workflow definition

见: samples/greeting

例子2

见: demos/service-workflow

# 启动微服务
demos/service-workflow/src/main/java/greetingworkflow/Microservice.java
# 启动 worker
demos/service-workflow/src/main/java/greetingworkflow/GreetingWorker.java
# 启动 workflow
demos/service-workflow/src/main/java/greetingworkflow/Starter.java
greeting-workflow 
¡Hola, Cyper!

screenshot

About

Code Exercises for Temporal 101 in java

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 52.6%
  • Java 42.9%
  • Go 4.5%

AltStyle によって変換されたページ (->オリジナル) /