1- # Java Cadence Samples
2- These samples demonstrate various capabilities of Java Cadence client and server. You can learn more about Cadence at:
3- * [ Cadence Service] ( https://github.com/uber/cadence )
4- * [ Cadence Java Client] ( https://github.com/uber/cadence -java-client )
5- * [ Go Cadence Client] ( https://github.com/uber -go/cadence-client )
1+ # Java Temporal Samples
2+ These samples demonstrate various capabilities of Java Temporal client and server. You can learn more about Temporal at:
3+ * [ Temporal Service] ( https://github.com/temporalio/temporal )
4+ * [ Temporal Java Client] ( https://github.com/temporalio/temporal -java-sdk )
5+ * [ Go Temporal Client] ( https://github.com/temporalio/temporal -go-sdk )
66
77## Overview of the Samples
88
@@ -29,8 +29,8 @@ These samples demonstrate various capabilities of Java Cadence client and server
2929
3030Run the following commands:
3131
32- git clone https://github.com/uber/cadence -java-samples
33- cd cadence -java-samples
32+ git clone https://github.com/temporalio/temporal -java-samples
33+ cd temporal -java-samples
3434
3535## Import into IntelliJ
3636
@@ -43,24 +43,18 @@ choose **Gradle** and then click **Next**->**Finish**.
4343
4444 ./gradlew build
4545
46- ## Run Cadence Server
46+ ## Run Temporal Server
4747
48- Run Cadence Server using Docker Compose:
48+ Run Temporal Server using Docker Compose:
4949
50- curl -O https://raw.githubusercontent.com/uber/cadence /master/docker/docker-compose.yml
50+ curl -O https://raw.githubusercontent.com/temporalio/temporal /master/docker/docker-compose.yml
5151 docker-compose up
5252
53- If this does not work, see the instructions for running Cadence Server at https://github.com/uber/cadence /blob/master/README.md .
53+ If this does not work, see the instructions for running Temporal Server at https://github.com/temporalio/temporal /blob/master/README.md .
5454
55- ## Register the Domain
55+ ## See Temporal UI (Not Available yet!)
5656
57- To register the * sample* domain, run the following command once before running any samples:
58-
59- ./gradlew -q execute -PmainClass=com.uber.cadence.samples.common.RegisterDomain
60-
61- ## See Cadence UI
62-
63- The Cadence Server running in a docker container includes a Web UI.
57+ The Temporal Server running in a docker container includes a Web UI.
6458
6559Connect to [ http://localhost:8088 ] ( http://localhost:8088 ) .
6660
@@ -71,9 +65,9 @@ top right corner from "Open" to "Closed" to see the list of the completed workfl
7165Click on a * RUN ID* of a workflow to see more details about it. Try different view formats to get a different level
7266of details about the execution history.
7367
74- ## Install Cadence CLI
68+ ## Install Temporal CLI
7569
76- [ Command Line Interface Documentation] ( https://mfateev.github .io/cadence /docs/08_cli )
70+ [ Command Line Interface Documentation] ( https://docs.temporal .io/docs/08_cli )
7771
7872## Run the samples
7973
@@ -86,37 +80,39 @@ Don't forget to check unit tests found under src/test/java!
8680
8781To run the hello world samples:
8882
89- ./gradlew -q execute -PmainClass=com.uber.cadence.samples.hello.HelloActivity
90- ./gradlew -q execute -PmainClass=com.uber.cadence.samples.hello.HelloActivityRetry
91- ./gradlew -q execute -PmainClass=com.uber.cadence.samples.hello.HelloAsync
92- ./gradlew -q execute -PmainClass=com.uber.cadence.samples.hello.HelloAsyncActivityCompletion
93- ./gradlew -q execute -PmainClass=com.uber.cadence.samples.hello.HelloAsyncLambda
94- ./gradlew -q execute -PmainClass=com.uber.cadence.samples.hello.HelloChild
95- ./gradlew -q execute -PmainClass=com.uber.cadence.samples.hello.HelloException
96- ./gradlew -q execute -PmainClass=com.uber.cadence.samples.hello.HelloPeriodic
97- ./gradlew -q execute -PmainClass=com.uber.cadence.samples.hello.HelloQuery
98- ./gradlew -q execute -PmainClass=com.uber.cadence.samples.hello.HelloSignal
83+ ./gradlew -q execute -PmainClass=io.temporal.samples.hello.HelloActivity
84+ ./gradlew -q execute -PmainClass=io.temporal.samples.hello.HelloActivityRetry
85+ ./gradlew -q execute -PmainClass=io.temporal.samples.hello.HelloAsync
86+ ./gradlew -q execute -PmainClass=io.temporal.samples.hello.HelloAsyncActivityCompletion
87+ ./gradlew -q execute -PmainClass=io.temporal.samples.hello.HelloAsyncLambda
88+ ./gradlew -q execute -PmainClass=io.temporal.samples.hello.HelloChild
89+ ./gradlew -q execute -PmainClass=io.temporal.samples.hello.HelloException
90+ ./gradlew -q execute -PmainClass=io.temporal.samples.hello.HelloPeriodic
91+ ./gradlew -q execute -PmainClass=io.temporal.samples.hello.HelloCron
92+ ./gradlew -q execute -PmainClass=io.temporal.samples.hello.HelloQuery
93+ ./gradlew -q execute -PmainClass=io.temporal.samples.hello.HelloSignal
9994
10095### File Processing
10196
10297This sample has two executables. Execute each command in a separate terminal window. The first command
10398runs the worker that hosts the workflow and activities implementation. To demonstrate that activities
10499execute together, we recommend that you run more than one instance of this worker.
105100
106- ./gradlew -q execute -PmainClass=com.uber.cadence .samples.fileprocessing.FileProcessingWorker
101+ ./gradlew -q execute -PmainClass=io.temporal .samples.fileprocessing.FileProcessingWorker
107102
108103The second command starts workflows. Each invocation starts a new workflow execution.
109104
110- ./gradlew -q execute -PmainClass=com.uber.cadence .samples.fileprocessing.FileProcessingStarter
105+ ./gradlew -q execute -PmainClass=io.temporal .samples.fileprocessing.FileProcessingStarter
111106
112107### Trip Booking
113108
114- Cadence implementation of the [ Camunda BPMN trip booking example] ( https://github.com/berndruecker/trip-booking-saga-java )
109+ Temporal implementation of the [ Camunda BPMN trip booking example] ( https://github.com/berndruecker/trip-booking-saga-java )
115110
116- Demonstrates Cadence approach to SAGA.
111+ Demonstrates Temporal approach to SAGA.
117112
118113To run:
119114
120- ./gradlew -q execute -PmainClass=com.uber.cadence.samples.bookingsaga.TripBookingSaga
121-
115+ ./gradlew -q execute -PmainClass=io.temporal.samples.bookingsaga.TripBookingSaga
116+
117+ The produced exception trace is part of the sample, so don't get confused by it.
122118
0 commit comments