Skip to content

Commit 9006c55

Browse files
committed
Revert "revert: remove run commands from sample manifest"
This reverts commit a920d49.
1 parent a920d49 commit 9006c55

1 file changed

Lines changed: 148 additions & 0 deletions

File tree

temporal-sample.yaml

Lines changed: 148 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,171 +25,319 @@ samples:
2525
dest: src/main/java/io/temporal/samples/hello
2626
description: Single-file hello world samples demonstrating core SDK features
2727
sdk_version: "1.32.1"
28+
commands:
29+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.hello.HelloActivity"
2830
- path: core/src/main/java/io/temporal/samples/nexus
2931
dest: src/main/java/io/temporal/samples/nexus
3032
description: Nexus service definition and operation handlers
3133
sdk_version: "1.32.1"
34+
commands:
35+
- cmd: "temporal operator namespace create --namespace my-target-namespace"
36+
- cmd: "temporal operator namespace create --namespace my-caller-namespace"
37+
- 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"
38+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.nexus.handler.HandlerWorker --args=\"-target-host localhost:7233 -namespace my-target-namespace\""
39+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.nexus.caller.CallerWorker --args=\"-target-host localhost:7233 -namespace my-caller-namespace\""
40+
new_terminal: true
41+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.nexus.caller.CallerStarter --args=\"-target-host localhost:7233 -namespace my-caller-namespace\""
42+
new_terminal: true
3243
- path: core/src/main/java/io/temporal/samples/nexuscancellation
3344
dest: src/main/java/io/temporal/samples/nexuscancellation
3445
description: Cancel a Nexus operation using WaitRequested cancellation
3546
sdk_version: "1.32.1"
3647
include:
3748
- path: core/src/main/java/io/temporal/samples/nexus
3849
dest: src/main/java/io/temporal/samples/nexus
50+
commands:
51+
- cmd: "temporal operator namespace create --namespace my-target-namespace"
52+
- cmd: "temporal operator namespace create --namespace my-caller-namespace"
53+
- cmd: "temporal operator nexus endpoint create --name my-nexus-endpoint-name --target-namespace my-target-namespace --target-task-queue my-handler-task-queue"
54+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.nexuscancellation.handler.HandlerWorker --args=\"-target-host localhost:7233 -namespace my-target-namespace\""
55+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.nexuscancellation.caller.CallerWorker --args=\"-target-host localhost:7233 -namespace my-caller-namespace\""
56+
new_terminal: true
57+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.nexuscancellation.caller.CallerStarter --args=\"-target-host localhost:7233 -namespace my-caller-namespace\""
58+
new_terminal: true
3959
- path: core/src/main/java/io/temporal/samples/nexuscontextpropagation
4060
dest: src/main/java/io/temporal/samples/nexuscontextpropagation
4161
description: Propagate MDC context from Workflows to Nexus operations
4262
sdk_version: "1.32.1"
4363
include:
4464
- path: core/src/main/java/io/temporal/samples/nexus
4565
dest: src/main/java/io/temporal/samples/nexus
66+
commands:
67+
- cmd: "temporal operator namespace create --namespace my-target-namespace"
68+
- cmd: "temporal operator namespace create --namespace my-caller-namespace"
69+
- cmd: "temporal operator nexus endpoint create --name my-nexus-endpoint-name --target-namespace my-target-namespace --target-task-queue my-handler-task-queue"
70+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.nexuscontextpropagation.handler.HandlerWorker --args=\"-target-host localhost:7233 -namespace my-target-namespace\""
71+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.nexuscontextpropagation.caller.CallerWorker --args=\"-target-host localhost:7233 -namespace my-caller-namespace\""
72+
new_terminal: true
73+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.nexuscontextpropagation.caller.CallerStarter --args=\"-target-host localhost:7233 -namespace my-caller-namespace\""
74+
new_terminal: true
4675
- path: core/src/main/java/io/temporal/samples/nexusmultipleargs
4776
dest: src/main/java/io/temporal/samples/nexusmultipleargs
4877
description: Map a Nexus operation to a workflow with multiple input arguments
4978
sdk_version: "1.32.1"
5079
include:
5180
- path: core/src/main/java/io/temporal/samples/nexus
5281
dest: src/main/java/io/temporal/samples/nexus
82+
commands:
83+
- cmd: "temporal operator namespace create --namespace my-target-namespace"
84+
- cmd: "temporal operator namespace create --namespace my-caller-namespace"
85+
- cmd: "temporal operator nexus endpoint create --name my-nexus-endpoint-name --target-namespace my-target-namespace --target-task-queue my-handler-task-queue"
86+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.nexusmultipleargs.handler.HandlerWorker --args=\"-target-host localhost:7233 -namespace my-target-namespace\""
87+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.nexusmultipleargs.caller.CallerWorker --args=\"-target-host localhost:7233 -namespace my-caller-namespace\""
88+
new_terminal: true
89+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.nexusmultipleargs.caller.CallerStarter --args=\"-target-host localhost:7233 -namespace my-caller-namespace\""
90+
new_terminal: true
5391
- path: core/src/main/java/io/temporal/samples/bookingsaga
5492
dest: src/main/java/io/temporal/samples/bookingsaga
5593
description: Trip booking Saga pattern with compensation
5694
sdk_version: "1.32.1"
95+
commands:
96+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.bookingsaga.TripBookingWorker"
97+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.bookingsaga.TripBookingClient"
98+
new_terminal: true
5799
- path: core/src/main/java/io/temporal/samples/moneytransfer
58100
dest: src/main/java/io/temporal/samples/moneytransfer
59101
description: Separate processes for workflows, activities, and transfer requests
60102
sdk_version: "1.32.1"
103+
commands:
104+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.moneytransfer.AccountTransferWorker"
105+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.moneytransfer.AccountActivityWorker"
106+
new_terminal: true
107+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.moneytransfer.TransferRequester"
108+
new_terminal: true
61109
- path: core/src/main/java/io/temporal/samples/dsl
62110
dest: src/main/java/io/temporal/samples/dsl
63111
description: DSL-driven workflow steps defined in JSON
64112
sdk_version: "1.32.1"
65113
include:
66114
- path: core/src/main/resources/dsl
67115
dest: src/main/resources/dsl
116+
commands:
117+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.dsl.Starter"
68118
- path: core/src/main/java/io/temporal/samples/fileprocessing
69119
dest: src/main/java/io/temporal/samples/fileprocessing
70120
description: Route tasks to specific Workers for host-local download/process/upload
71121
sdk_version: "1.32.1"
122+
commands:
123+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.fileprocessing.FileProcessingWorker"
124+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.fileprocessing.FileProcessingStarter"
125+
new_terminal: true
72126
- path: core/src/main/java/io/temporal/samples/encryptedpayloads
73127
dest: src/main/java/io/temporal/samples/encryptedpayloads
74128
description: End-to-end payload encryption
75129
sdk_version: "1.32.1"
130+
commands:
131+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.encryptedpayloads.EncryptedPayloadsActivity"
76132
- path: core/src/main/java/io/temporal/samples/apikey
77133
dest: src/main/java/io/temporal/samples/apikey
78134
description: Connect to Temporal using API key authentication
79135
sdk_version: "1.32.1"
136+
commands:
137+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.apikey.ApiKeyWorker"
138+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.apikey.Starter"
139+
new_terminal: true
80140
- path: core/src/main/java/io/temporal/samples/asyncchild
81141
dest: src/main/java/io/temporal/samples/asyncchild
82142
description: Invoke a Child Workflow asynchronously outliving the parent
83143
sdk_version: "1.32.1"
144+
commands:
145+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.asyncchild.Starter"
84146
- path: core/src/main/java/io/temporal/samples/asyncuntypedchild
85147
dest: src/main/java/io/temporal/samples/asyncuntypedchild
86148
description: Invoke an untyped Child Workflow asynchronously outliving the parent
87149
sdk_version: "1.32.1"
150+
commands:
151+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.asyncuntypedchild.Starter"
88152
- path: core/src/main/java/io/temporal/samples/autoheartbeat
89153
dest: src/main/java/io/temporal/samples/autoheartbeat
90154
description: Auto-heartbeating interceptor for long-running activities
91155
sdk_version: "1.32.1"
156+
commands:
157+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.autoheartbeat.Starter"
92158
- path: core/src/main/java/io/temporal/samples/batch
93159
dest: src/main/java/io/temporal/samples/batch
94160
description: Batch processing patterns using sliding window, iterator, and heartbeating
95161
sdk_version: "1.32.1"
162+
commands:
163+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.batch.slidingwindow.SlidingWindowBatchWorker"
164+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.batch.slidingwindow.SlidingWindowBatchStarter"
165+
new_terminal: true
96166
- path: core/src/main/java/io/temporal/samples/bookingsyncsaga
97167
dest: src/main/java/io/temporal/samples/bookingsyncsaga
98168
description: Synchronous trip booking Saga with early client unblock via update
99169
sdk_version: "1.32.1"
170+
commands:
171+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.bookingsyncsaga.TripBookingWorker"
172+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.bookingsyncsaga.TripBookingClient"
173+
new_terminal: true
100174
- path: core/src/main/java/io/temporal/samples/countinterceptor
101175
dest: src/main/java/io/temporal/samples/countinterceptor
102176
description: Worker and client interceptors that count executions, signals, and queries
103177
sdk_version: "1.32.1"
178+
commands:
179+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.countinterceptor.InterceptorStarter"
104180
- path: core/src/main/java/io/temporal/samples/customannotation
105181
dest: src/main/java/io/temporal/samples/customannotation
106182
description: Custom annotation via interceptor to mark exceptions as benign
107183
sdk_version: "1.32.1"
184+
commands:
185+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.customannotation.CustomAnnotation"
108186
- path: core/src/main/java/io/temporal/samples/customchangeversion
109187
dest: src/main/java/io/temporal/samples/customchangeversion
110188
description: Upsert a custom search attribute when adding workflow version changes
111189
sdk_version: "1.32.1"
190+
commands:
191+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.customchangeversion.CustomChangeVersionStarter"
112192
- path: core/src/main/java/io/temporal/samples/earlyreturn
113193
dest: src/main/java/io/temporal/samples/earlyreturn
114194
description: Early return from a workflow using Update-with-Start
115195
sdk_version: "1.32.1"
196+
commands:
197+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.earlyreturn.EarlyReturnWorker"
198+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.earlyreturn.EarlyReturnClient"
199+
new_terminal: true
116200
- path: core/src/main/java/io/temporal/samples/encodefailures
117201
dest: src/main/java/io/temporal/samples/encodefailures
118202
description: Encode and decode failure messages using a payload codec
119203
sdk_version: "1.32.1"
204+
commands:
205+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.encodefailures.Starter"
120206
- path: core/src/main/java/io/temporal/samples/envconfig
121207
dest: src/main/java/io/temporal/samples/envconfig
122208
description: Configure the Temporal client from TOML configuration files
123209
sdk_version: "1.32.1"
210+
commands:
211+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.envconfig.LoadFromFile"
124212
- path: core/src/main/java/io/temporal/samples/excludefrominterceptor
125213
dest: src/main/java/io/temporal/samples/excludefrominterceptor
126214
description: Exclude specific workflow and activity types from interceptors
127215
sdk_version: "1.32.1"
216+
commands:
217+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.excludefrominterceptor.RunMyWorkflows"
128218
- path: core/src/main/java/io/temporal/samples/getresultsasync
129219
dest: src/main/java/io/temporal/samples/getresultsasync
130220
description: Get workflow results asynchronously using getResultAsync
131221
sdk_version: "1.32.1"
222+
commands:
223+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.getresultsasync.Worker"
224+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.getresultsasync.Starter"
225+
new_terminal: true
132226
- path: core/src/main/java/io/temporal/samples/keymanagementencryption
133227
dest: src/main/java/io/temporal/samples/keymanagementencryption
134228
description: Payload encryption using the AWS Encryption SDK with KMS keyrings
135229
sdk_version: "1.32.1"
230+
commands:
231+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.keymanagementencryption.awsencryptionsdk.EncryptedPayloads"
136232
- path: core/src/main/java/io/temporal/samples/listworkflows
137233
dest: src/main/java/io/temporal/samples/listworkflows
138234
description: List workflow executions using custom search attributes
139235
sdk_version: "1.32.1"
236+
commands:
237+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.listworkflows.Starter"
140238
- path: core/src/main/java/io/temporal/samples/metrics
141239
dest: src/main/java/io/temporal/samples/metrics
142240
description: Set up SDK metrics with a Prometheus scrape endpoint
143241
sdk_version: "1.32.1"
242+
commands:
243+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.metrics.MetricsWorker"
244+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.metrics.MetricsStarter"
245+
new_terminal: true
144246
- path: core/src/main/java/io/temporal/samples/moneybatch
145247
dest: src/main/java/io/temporal/samples/moneybatch
146248
description: Batch multiple withdrawals into a single deposit using signal-with-start
147249
sdk_version: "1.32.1"
250+
commands:
251+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.moneybatch.AccountTransferWorker"
252+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.moneybatch.AccountActivityWorker"
253+
new_terminal: true
254+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.moneybatch.TransferRequester"
255+
new_terminal: true
148256
- path: core/src/main/java/io/temporal/samples/packetdelivery
149257
dest: src/main/java/io/temporal/samples/packetdelivery
150258
description: Parallel async packet deliveries with per-item cancellation support
151259
sdk_version: "1.32.1"
260+
commands:
261+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.packetdelivery.Starter"
152262
- path: core/src/main/java/io/temporal/samples/payloadconverter
153263
dest: src/main/java/io/temporal/samples/payloadconverter
154264
description: Custom payload converters for crypto and CloudEvents serialization
155265
sdk_version: "1.32.1"
266+
commands:
267+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.payloadconverter.crypto.Starter"
156268
- path: core/src/main/java/io/temporal/samples/peractivityoptions
157269
dest: src/main/java/io/temporal/samples/peractivityoptions
158270
description: Set per-activity-type options via WorkflowImplementationOptions
159271
sdk_version: "1.32.1"
272+
commands:
273+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.peractivityoptions.Starter"
160274
- path: core/src/main/java/io/temporal/samples/polling
161275
dest: src/main/java/io/temporal/samples/polling
162276
description: Polling patterns for frequent, infrequent, and periodic activity execution
163277
sdk_version: "1.32.1"
278+
commands:
279+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.polling.frequent.FrequentPollingStarter"
164280
- path: core/src/main/java/io/temporal/samples/retryonsignalinterceptor
165281
dest: src/main/java/io/temporal/samples/retryonsignalinterceptor
166282
description: Interceptor that waits for a signal to retry or fail an activity
167283
sdk_version: "1.32.1"
284+
commands:
285+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.retryonsignalinterceptor.MyWorkflowWorker"
286+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.retryonsignalinterceptor.RetryRequester"
287+
new_terminal: true
168288
- path: core/src/main/java/io/temporal/samples/safemessagepassing
169289
dest: src/main/java/io/temporal/samples/safemessagepassing
170290
description: Safe signal and update handling with locking and continue-as-new
171291
sdk_version: "1.32.1"
292+
commands:
293+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.safemessagepassing.ClusterManagerWorkflowWorker"
294+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.safemessagepassing.ClusterManagerWorkflowStarter"
295+
new_terminal: true
172296
- path: core/src/main/java/io/temporal/samples/sleepfordays
173297
dest: src/main/java/io/temporal/samples/sleepfordays
174298
description: Workflow that periodically sleeps for days between actions
175299
sdk_version: "1.32.1"
300+
commands:
301+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.sleepfordays.Worker"
302+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.sleepfordays.Starter"
303+
new_terminal: true
176304
- path: core/src/main/java/io/temporal/samples/ssl
177305
dest: src/main/java/io/temporal/samples/ssl
178306
description: Connect to Temporal using mTLS authentication
179307
sdk_version: "1.32.1"
308+
commands:
309+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.ssl.Starter"
180310
- path: core/src/main/java/io/temporal/samples/terminateworkflow
181311
dest: src/main/java/io/temporal/samples/terminateworkflow
182312
description: Terminate a workflow execution using the client API
183313
sdk_version: "1.32.1"
314+
commands:
315+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.terminateworkflow.Starter"
184316
- path: core/src/main/java/io/temporal/samples/tracing
185317
dest: src/main/java/io/temporal/samples/tracing
186318
description: Distributed tracing with OpenTracing and OpenTelemetry via Jaeger
187319
sdk_version: "1.32.1"
320+
commands:
321+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.tracing.TracingWorker"
322+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.tracing.Starter"
323+
new_terminal: true
188324
- path: core/src/main/java/io/temporal/samples/updatabletimer
189325
dest: src/main/java/io/temporal/samples/updatabletimer
190326
description: Blocking sleep that can be updated via signal at any time
191327
sdk_version: "1.32.1"
328+
commands:
329+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.updatabletimer.DynamicSleepWorkflowWorker"
330+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.updatabletimer.DynamicSleepWorkflowStarter"
331+
new_terminal: true
192332
- path: core/src/main/java/io/temporal/samples/workerversioning
193333
dest: src/main/java/io/temporal/samples/workerversioning
194334
description: Worker Versioning with auto-upgrading and pinned workflow deployments
195335
sdk_version: "1.32.1"
336+
commands:
337+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.workerversioning.Starter"
338+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.workerversioning.WorkerV1"
339+
new_terminal: true
340+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.workerversioning.WorkerV1_1"
341+
new_terminal: true
342+
- cmd: "./gradlew -q execute -PmainClass=io.temporal.samples.workerversioning.WorkerV2"
343+
new_terminal: true

0 commit comments

Comments
 (0)