@@ -24,159 +24,305 @@ samples:
2424 dest : src/main/java/io/temporal/samples/hello
2525 description : Single-file hello world samples demonstrating core SDK features
2626 sdk_version : " 1.32.1"
27+ commands :
28+ - cmd : " ./gradlew -q execute -PmainClass=io.temporal.samples.hello.HelloActivity"
2729 - path : core/src/main/java/io/temporal/samples/nexus
2830 dest : src/main/java/io/temporal/samples/nexus
2931 description : Nexus service definition and operation handlers
3032 sdk_version : " 1.32.1"
33+ commands :
34+ - cmd : " temporal operator namespace create --namespace my-target-namespace"
35+ - cmd : " temporal operator namespace create --namespace my-caller-namespace"
36+ - cmd : " temporal operator nexus endpoint create --name my-nexus-endpoint-name --target-namespace my-target-namespace --target-task-queue my-handler-task-queue --description-file ./src/main/java/io/temporal/samples/nexus/service/description.md"
37+ - cmd : " ./gradlew -q execute -PmainClass=io.temporal.samples.nexus.handler.HandlerWorker --args=\" -target-host localhost:7233 -namespace my-target-namespace\" "
38+ - cmd : " ./gradlew -q execute -PmainClass=io.temporal.samples.nexus.caller.CallerWorker --args=\" -target-host localhost:7233 -namespace my-caller-namespace\" "
39+ new_terminal : true
40+ - cmd : " ./gradlew -q execute -PmainClass=io.temporal.samples.nexus.caller.CallerStarter --args=\" -target-host localhost:7233 -namespace my-caller-namespace\" "
41+ new_terminal : true
3142 - path : core/src/main/java/io/temporal/samples/nexuscancellation
3243 dest : src/main/java/io/temporal/samples/nexuscancellation
3344 description : Cancel a Nexus operation using WaitRequested cancellation
3445 sdk_version : " 1.32.1"
46+ commands :
47+ - cmd : " temporal operator namespace create --namespace my-target-namespace"
48+ - cmd : " temporal operator namespace create --namespace my-caller-namespace"
49+ - cmd : " temporal operator nexus endpoint create --name my-nexus-endpoint-name --target-namespace my-target-namespace --target-task-queue my-handler-task-queue --description-file ./src/main/java/io/temporal/samples/nexus/service/description.md"
50+ - cmd : " ./gradlew -q execute -PmainClass=io.temporal.samples.nexuscancellation.handler.HandlerWorker --args=\" -target-host localhost:7233 -namespace my-target-namespace\" "
51+ - cmd : " ./gradlew -q execute -PmainClass=io.temporal.samples.nexuscancellation.caller.CallerWorker --args=\" -target-host localhost:7233 -namespace my-caller-namespace\" "
52+ new_terminal : true
53+ - cmd : " ./gradlew -q execute -PmainClass=io.temporal.samples.nexuscancellation.caller.CallerStarter --args=\" -target-host localhost:7233 -namespace my-caller-namespace\" "
54+ new_terminal : true
3555 - path : core/src/main/java/io/temporal/samples/nexuscontextpropagation
3656 dest : src/main/java/io/temporal/samples/nexuscontextpropagation
3757 description : Propagate MDC context from Workflows to Nexus operations
3858 sdk_version : " 1.32.1"
59+ commands :
60+ - cmd : " temporal operator namespace create --namespace my-target-namespace"
61+ - cmd : " temporal operator namespace create --namespace my-caller-namespace"
62+ - cmd : " temporal operator nexus endpoint create --name my-nexus-endpoint-name --target-namespace my-target-namespace --target-task-queue my-handler-task-queue --description-file ./src/main/java/io/temporal/samples/nexus/service/description.md"
63+ - cmd : " ./gradlew -q execute -PmainClass=io.temporal.samples.nexuscontextpropagation.handler.HandlerWorker --args=\" -target-host localhost:7233 -namespace my-target-namespace\" "
64+ - cmd : " ./gradlew -q execute -PmainClass=io.temporal.samples.nexuscontextpropagation.caller.CallerWorker --args=\" -target-host localhost:7233 -namespace my-caller-namespace\" "
65+ new_terminal : true
66+ - cmd : " ./gradlew -q execute -PmainClass=io.temporal.samples.nexuscontextpropagation.caller.CallerStarter --args=\" -target-host localhost:7233 -namespace my-caller-namespace\" "
67+ new_terminal : true
3968 - path : core/src/main/java/io/temporal/samples/nexusmultipleargs
4069 dest : src/main/java/io/temporal/samples/nexusmultipleargs
4170 description : Map a Nexus operation to a workflow with multiple input arguments
4271 sdk_version : " 1.32.1"
72+ commands :
73+ - cmd : " temporal operator namespace create --namespace my-target-namespace"
74+ - cmd : " temporal operator namespace create --namespace my-caller-namespace"
75+ - cmd : " temporal operator nexus endpoint create --name my-nexus-endpoint-name --target-namespace my-target-namespace --target-task-queue my-handler-task-queue --description-file ./src/main/java/io/temporal/samples/nexus/service/description.md"
76+ - cmd : " ./gradlew -q execute -PmainClass=io.temporal.samples.nexusmultipleargs.handler.HandlerWorker --args=\" -target-host localhost:7233 -namespace my-target-namespace\" "
77+ - cmd : " ./gradlew -q execute -PmainClass=io.temporal.samples.nexusmultipleargs.caller.CallerWorker --args=\" -target-host localhost:7233 -namespace my-caller-namespace\" "
78+ new_terminal : true
79+ - cmd : " ./gradlew -q execute -PmainClass=io.temporal.samples.nexusmultipleargs.caller.CallerStarter --args=\" -target-host localhost:7233 -namespace my-caller-namespace\" "
80+ new_terminal : true
4381 - path : core/src/main/java/io/temporal/samples/bookingsaga
4482 dest : src/main/java/io/temporal/samples/bookingsaga
4583 description : Trip booking Saga pattern with compensation
4684 sdk_version : " 1.32.1"
85+ commands :
86+ - cmd : " ./gradlew -q execute -PmainClass=io.temporal.samples.bookingsaga.TripBookingSaga"
4787 - path : core/src/main/java/io/temporal/samples/moneytransfer
4888 dest : src/main/java/io/temporal/samples/moneytransfer
4989 description : Separate processes for workflows, activities, and transfer requests
5090 sdk_version : " 1.32.1"
91+ commands :
92+ - cmd : " ./gradlew -q execute -PmainClass=io.temporal.samples.moneytransfer.AccountTransferWorker"
93+ - cmd : " ./gradlew -q execute -PmainClass=io.temporal.samples.moneytransfer.AccountActivityWorker"
94+ new_terminal : true
95+ - cmd : " ./gradlew -q execute -PmainClass=io.temporal.samples.moneytransfer.TransferRequester"
96+ new_terminal : true
5197 - path : core/src/main/java/io/temporal/samples/dsl
5298 dest : src/main/java/io/temporal/samples/dsl
5399 description : DSL-driven workflow steps defined in JSON
54100 sdk_version : " 1.32.1"
101+ commands :
102+ - cmd : " ./gradlew -q execute -PmainClass=io.temporal.samples.dsl.Starter"
55103 - path : core/src/main/java/io/temporal/samples/fileprocessing
56104 dest : src/main/java/io/temporal/samples/fileprocessing
57105 description : Route tasks to specific Workers for host-local download/process/upload
58106 sdk_version : " 1.32.1"
107+ commands :
108+ - cmd : " ./gradlew -q execute -PmainClass=io.temporal.samples.fileprocessing.FileProcessingWorker"
109+ - cmd : " ./gradlew -q execute -PmainClass=io.temporal.samples.fileprocessing.FileProcessingStarter"
110+ new_terminal : true
59111 - path : core/src/main/java/io/temporal/samples/encryptedpayloads
60112 dest : src/main/java/io/temporal/samples/encryptedpayloads
61113 description : End-to-end payload encryption
62114 sdk_version : " 1.32.1"
115+ commands :
116+ - cmd : " ./gradlew -q execute -PmainClass=io.temporal.samples.encryptedpayloads.EncryptedPayloadsActivity"
63117 - path : core/src/main/java/io/temporal/samples/apikey
64118 dest : src/main/java/io/temporal/samples/apikey
65119 description : Connect to Temporal using API key authentication
66120 sdk_version : " 1.32.1"
121+ commands :
122+ - cmd : " ./gradlew -q execute -PmainClass=io.temporal.samples.apikey.ApiKeyWorker"
123+ - cmd : " ./gradlew -q execute -PmainClass=io.temporal.samples.apikey.Starter"
124+ new_terminal : true
67125 - path : core/src/main/java/io/temporal/samples/asyncchild
68126 dest : src/main/java/io/temporal/samples/asyncchild
69127 description : Invoke a Child Workflow asynchronously outliving the parent
70128 sdk_version : " 1.32.1"
129+ commands :
130+ - cmd : " ./gradlew -q execute -PmainClass=io.temporal.samples.asyncchild.Starter"
71131 - path : core/src/main/java/io/temporal/samples/asyncuntypedchild
72132 dest : src/main/java/io/temporal/samples/asyncuntypedchild
73133 description : Invoke an untyped Child Workflow asynchronously outliving the parent
74134 sdk_version : " 1.32.1"
135+ commands :
136+ - cmd : " ./gradlew -q execute -PmainClass=io.temporal.samples.asyncuntypedchild.Starter"
75137 - path : core/src/main/java/io/temporal/samples/autoheartbeat
76138 dest : src/main/java/io/temporal/samples/autoheartbeat
77139 description : Auto-heartbeating interceptor for long-running activities
78140 sdk_version : " 1.32.1"
141+ commands :
142+ - cmd : " ./gradlew -q execute -PmainClass=io.temporal.samples.autoheartbeat.Starter"
79143 - path : core/src/main/java/io/temporal/samples/batch
80144 dest : src/main/java/io/temporal/samples/batch
81145 description : Batch processing patterns using sliding window, iterator, and heartbeating
82146 sdk_version : " 1.32.1"
147+ commands :
148+ - cmd : " ./gradlew -q execute -PmainClass=io.temporal.samples.batch.slidingwindow.SlidingWindowBatchWorker"
149+ - cmd : " ./gradlew -q execute -PmainClass=io.temporal.samples.batch.slidingwindow.SlidingWindowBatchStarter"
150+ new_terminal : true
83151 - path : core/src/main/java/io/temporal/samples/bookingsyncsaga
84152 dest : src/main/java/io/temporal/samples/bookingsyncsaga
85153 description : Synchronous trip booking Saga with early client unblock via update
86154 sdk_version : " 1.32.1"
155+ commands :
156+ - cmd : " ./gradlew -q execute -PmainClass=io.temporal.samples.bookingsyncsaga.TripBookingWorker"
157+ - cmd : " ./gradlew -q execute -PmainClass=io.temporal.samples.bookingsyncsaga.TripBookingClient"
158+ new_terminal : true
87159 - path : core/src/main/java/io/temporal/samples/countinterceptor
88160 dest : src/main/java/io/temporal/samples/countinterceptor
89161 description : Worker and client interceptors that count executions, signals, and queries
90162 sdk_version : " 1.32.1"
163+ commands :
164+ - cmd : " ./gradlew -q execute -PmainClass=io.temporal.samples.countinterceptor.InterceptorStarter"
91165 - path : core/src/main/java/io/temporal/samples/customannotation
92166 dest : src/main/java/io/temporal/samples/customannotation
93167 description : Custom annotation via interceptor to mark exceptions as benign
94168 sdk_version : " 1.32.1"
169+ commands :
170+ - cmd : " ./gradlew -q execute -PmainClass=io.temporal.samples.customannotation.CustomAnnotation"
95171 - path : core/src/main/java/io/temporal/samples/customchangeversion
96172 dest : src/main/java/io/temporal/samples/customchangeversion
97173 description : Upsert a custom search attribute when adding workflow version changes
98174 sdk_version : " 1.32.1"
175+ commands :
176+ - cmd : " ./gradlew -q execute -PmainClass=io.temporal.samples.customchangeversion.CustomChangeVersionStarter"
99177 - path : core/src/main/java/io/temporal/samples/earlyreturn
100178 dest : src/main/java/io/temporal/samples/earlyreturn
101179 description : Early return from a workflow using Update-with-Start
102180 sdk_version : " 1.32.1"
181+ commands :
182+ - cmd : " ./gradlew -q execute -PmainClass=io.temporal.samples.earlyreturn.EarlyReturnWorker"
183+ - cmd : " ./gradlew -q execute -PmainClass=io.temporal.samples.earlyreturn.EarlyReturnClient"
184+ new_terminal : true
103185 - path : core/src/main/java/io/temporal/samples/encodefailures
104186 dest : src/main/java/io/temporal/samples/encodefailures
105187 description : Encode and decode failure messages using a payload codec
106188 sdk_version : " 1.32.1"
189+ commands :
190+ - cmd : " ./gradlew -q execute -PmainClass=io.temporal.samples.encodefailures.Starter"
107191 - path : core/src/main/java/io/temporal/samples/envconfig
108192 dest : src/main/java/io/temporal/samples/envconfig
109193 description : Configure the Temporal client from TOML configuration files
110194 sdk_version : " 1.32.1"
195+ commands :
196+ - cmd : " ./gradlew -q execute -PmainClass=io.temporal.samples.envconfig.LoadFromFile"
111197 - path : core/src/main/java/io/temporal/samples/excludefrominterceptor
112198 dest : src/main/java/io/temporal/samples/excludefrominterceptor
113199 description : Exclude specific workflow and activity types from interceptors
114200 sdk_version : " 1.32.1"
201+ commands :
202+ - cmd : " ./gradlew -q execute -PmainClass=io.temporal.samples.excludefrominterceptor.RunMyWorkflows"
115203 - path : core/src/main/java/io/temporal/samples/getresultsasync
116204 dest : src/main/java/io/temporal/samples/getresultsasync
117205 description : Get workflow results asynchronously using getResultAsync
118206 sdk_version : " 1.32.1"
207+ commands :
208+ - cmd : " ./gradlew -q execute -PmainClass=io.temporal.samples.getresultsasync.Worker"
209+ - cmd : " ./gradlew -q execute -PmainClass=io.temporal.samples.getresultsasync.Starter"
210+ new_terminal : true
119211 - path : core/src/main/java/io/temporal/samples/keymanagementencryption
120212 dest : src/main/java/io/temporal/samples/keymanagementencryption
121213 description : Payload encryption using the AWS Encryption SDK with KMS keyrings
122214 sdk_version : " 1.32.1"
215+ commands :
216+ - cmd : " ./gradlew -q execute -PmainClass=io.temporal.samples.keymanagementencryption.awsencryptionsdk.EncryptedPayloads"
123217 - path : core/src/main/java/io/temporal/samples/listworkflows
124218 dest : src/main/java/io/temporal/samples/listworkflows
125219 description : List workflow executions using custom search attributes
126220 sdk_version : " 1.32.1"
221+ commands :
222+ - cmd : " ./gradlew -q execute -PmainClass=io.temporal.samples.listworkflows.Starter"
127223 - path : core/src/main/java/io/temporal/samples/metrics
128224 dest : src/main/java/io/temporal/samples/metrics
129225 description : Set up SDK metrics with a Prometheus scrape endpoint
130226 sdk_version : " 1.32.1"
227+ commands :
228+ - cmd : " ./gradlew -q execute -PmainClass=io.temporal.samples.metrics.MetricsWorker"
229+ - cmd : " ./gradlew -q execute -PmainClass=io.temporal.samples.metrics.MetricsStarter"
230+ new_terminal : true
131231 - path : core/src/main/java/io/temporal/samples/moneybatch
132232 dest : src/main/java/io/temporal/samples/moneybatch
133233 description : Batch multiple withdrawals into a single deposit using signal-with-start
134234 sdk_version : " 1.32.1"
235+ commands :
236+ - cmd : " ./gradlew -q execute -PmainClass=io.temporal.samples.moneybatch.AccountTransferWorker"
237+ - cmd : " ./gradlew -q execute -PmainClass=io.temporal.samples.moneybatch.AccountActivityWorker"
238+ new_terminal : true
239+ - cmd : " ./gradlew -q execute -PmainClass=io.temporal.samples.moneybatch.TransferRequester"
240+ new_terminal : true
135241 - path : core/src/main/java/io/temporal/samples/packetdelivery
136242 dest : src/main/java/io/temporal/samples/packetdelivery
137243 description : Parallel async packet deliveries with per-item cancellation support
138244 sdk_version : " 1.32.1"
245+ commands :
246+ - cmd : " ./gradlew -q execute -PmainClass=io.temporal.samples.packetdelivery.Starter"
139247 - path : core/src/main/java/io/temporal/samples/payloadconverter
140248 dest : src/main/java/io/temporal/samples/payloadconverter
141249 description : Custom payload converters for crypto and CloudEvents serialization
142250 sdk_version : " 1.32.1"
251+ commands :
252+ - cmd : " ./gradlew -q execute -PmainClass=io.temporal.samples.payloadconverter.crypto.Starter"
143253 - path : core/src/main/java/io/temporal/samples/peractivityoptions
144254 dest : src/main/java/io/temporal/samples/peractivityoptions
145255 description : Set per-activity-type options via WorkflowImplementationOptions
146256 sdk_version : " 1.32.1"
257+ commands :
258+ - cmd : " ./gradlew -q execute -PmainClass=io.temporal.samples.peractivityoptions.Starter"
147259 - path : core/src/main/java/io/temporal/samples/polling
148260 dest : src/main/java/io/temporal/samples/polling
149261 description : Polling patterns for frequent, infrequent, and periodic activity execution
150262 sdk_version : " 1.32.1"
263+ commands :
264+ - cmd : " ./gradlew -q execute -PmainClass=io.temporal.samples.polling.frequent.FrequentPollingStarter"
151265 - path : core/src/main/java/io/temporal/samples/retryonsignalinterceptor
152266 dest : src/main/java/io/temporal/samples/retryonsignalinterceptor
153267 description : Interceptor that waits for a signal to retry or fail an activity
154268 sdk_version : " 1.32.1"
269+ commands :
270+ - cmd : " ./gradlew -q execute -PmainClass=io.temporal.samples.retryonsignalinterceptor.MyWorkflowWorker"
271+ - cmd : " ./gradlew -q execute -PmainClass=io.temporal.samples.retryonsignalinterceptor.RetryRequester"
272+ new_terminal : true
155273 - path : core/src/main/java/io/temporal/samples/safemessagepassing
156274 dest : src/main/java/io/temporal/samples/safemessagepassing
157275 description : Safe signal and update handling with locking and continue-as-new
158276 sdk_version : " 1.32.1"
277+ commands :
278+ - cmd : " ./gradlew -q execute -PmainClass=io.temporal.samples.safemessagepassing.ClusterManagerWorkflowWorker"
279+ - cmd : " ./gradlew -q execute -PmainClass=io.temporal.samples.safemessagepassing.ClusterManagerWorkflowStarter"
280+ new_terminal : true
159281 - path : core/src/main/java/io/temporal/samples/sleepfordays
160282 dest : src/main/java/io/temporal/samples/sleepfordays
161283 description : Workflow that periodically sleeps for days between actions
162284 sdk_version : " 1.32.1"
285+ commands :
286+ - cmd : " ./gradlew -q execute -PmainClass=io.temporal.samples.sleepfordays.Worker"
287+ - cmd : " ./gradlew -q execute -PmainClass=io.temporal.samples.sleepfordays.Starter"
288+ new_terminal : true
163289 - path : core/src/main/java/io/temporal/samples/ssl
164290 dest : src/main/java/io/temporal/samples/ssl
165291 description : Connect to Temporal using mTLS authentication
166292 sdk_version : " 1.32.1"
293+ commands :
294+ - cmd : " ./gradlew -q execute -PmainClass=io.temporal.samples.ssl.Starter"
167295 - path : core/src/main/java/io/temporal/samples/terminateworkflow
168296 dest : src/main/java/io/temporal/samples/terminateworkflow
169297 description : Terminate a workflow execution using the client API
170298 sdk_version : " 1.32.1"
299+ commands :
300+ - cmd : " ./gradlew -q execute -PmainClass=io.temporal.samples.terminateworkflow.Starter"
171301 - path : core/src/main/java/io/temporal/samples/tracing
172302 dest : src/main/java/io/temporal/samples/tracing
173303 description : Distributed tracing with OpenTracing and OpenTelemetry via Jaeger
174304 sdk_version : " 1.32.1"
305+ commands :
306+ - cmd : " ./gradlew -q execute -PmainClass=io.temporal.samples.tracing.TracingWorker"
307+ - cmd : " ./gradlew -q execute -PmainClass=io.temporal.samples.tracing.Starter"
308+ new_terminal : true
175309 - path : core/src/main/java/io/temporal/samples/updatabletimer
176310 dest : src/main/java/io/temporal/samples/updatabletimer
177311 description : Blocking sleep that can be updated via signal at any time
178312 sdk_version : " 1.32.1"
313+ commands :
314+ - cmd : " ./gradlew -q execute -PmainClass=io.temporal.samples.updatabletimer.DynamicSleepWorkflowWorker"
315+ - cmd : " ./gradlew -q execute -PmainClass=io.temporal.samples.updatabletimer.DynamicSleepWorkflowStarter"
316+ new_terminal : true
179317 - path : core/src/main/java/io/temporal/samples/workerversioning
180318 dest : src/main/java/io/temporal/samples/workerversioning
181319 description : Worker Versioning with auto-upgrading and pinned workflow deployments
182320 sdk_version : " 1.32.1"
321+ commands :
322+ - cmd : " ./gradlew -q execute -PmainClass=io.temporal.samples.workerversioning.Starter"
323+ - cmd : " ./gradlew -q execute -PmainClass=io.temporal.samples.workerversioning.WorkerV1"
324+ new_terminal : true
325+ - cmd : " ./gradlew -q execute -PmainClass=io.temporal.samples.workerversioning.WorkerV1_1"
326+ new_terminal : true
327+ - cmd : " ./gradlew -q execute -PmainClass=io.temporal.samples.workerversioning.WorkerV2"
328+ new_terminal : true
0 commit comments