Skip to content

Commit 7445a7d

Browse files
committed
Better naming
1 parent 168a232 commit 7445a7d

28 files changed

Lines changed: 57 additions & 55 deletions

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,8 @@ Load client configuration from TOML files with programmatic overrides.
186186
This contains two samples, one sending messages to an existing workflow and a second that creates a workflow through Nexus
187187
and sends messages to it.
188188

189-
- [**Nexus Messaging V2**](/core/src/main/java/io/temporal/samples/nexusmessagingv2): Demonstrates how to send signal, update and query messages through Nexus.
190-
This version contains additional pre-release features.
189+
- [**Nexus Messaging Temporal Operation**](/core/src/main/java/io/temporal/samples/nexusmessagingtemporaloperation): Demonstrates how to send signal, update and query messages through Nexus.
190+
This version uses the `@TemporalOperation` annotation to declare Temporal-backed Nexus operations.
191191
<!-- @@@SNIPEND -->
192192

193193
### Running SpringBoot Samples

core/src/main/java/io/temporal/samples/nexusmessagingv2/README.md renamed to core/src/main/java/io/temporal/samples/nexusmessagingtemporaloperation/README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
This sample shows how to expose a long-running Workflow's queries, updates, and signals as Nexus
2-
operations. The V2 sample contains pre-release features. There are two self-contained examples,
3-
each in its own directory:
1+
This sample shows how to expose a long-running Workflow's queries, updates, and signals as Nexus operations. This
2+
version uses the experimental `@TemporalOperation` annotation to declare Temporal-backed Nexus operations as ordinary
3+
methods on `@ServiceImpl` classes instead of `@OperationImpl` factories that return `TemporalOperationHandler.create(...)`.
4+
5+
There are two self-contained examples, each in its own directory:
46

57
| | `callerpattern/` | `ondemandpattern/` |
68
|---|---|--------------------------------------------------------------|

core/src/main/java/io/temporal/samples/nexusmessagingv2/callerpattern/README.md renamed to core/src/main/java/io/temporal/samples/nexusmessagingtemporaloperation/callerpattern/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,19 +45,19 @@ variables or by editing the TOML file (see the `envconfig` sample for details).
4545
In one terminal, start the handler worker:
4646

4747
```bash
48-
./gradlew -q :core:execute -PmainClass=io.temporal.samples.nexusmessagingv2.callerpattern.handler.HandlerWorker
48+
./gradlew -q :core:execute -PmainClass=io.temporal.samples.nexusmessagingtemporaloperation.callerpattern.handler.HandlerWorker
4949
```
5050

5151
In a second terminal, start the caller worker:
5252

5353
```bash
54-
./gradlew -q :core:execute -PmainClass=io.temporal.samples.nexusmessagingv2.callerpattern.caller.CallerWorker
54+
./gradlew -q :core:execute -PmainClass=io.temporal.samples.nexusmessagingtemporaloperation.callerpattern.caller.CallerWorker
5555
```
5656

5757
In a third terminal, run the following command to start the example:
5858

5959
```bash
60-
./gradlew -q :core:execute -PmainClass=io.temporal.samples.nexusmessagingv2.callerpattern.caller.CallerStarter
60+
./gradlew -q :core:execute -PmainClass=io.temporal.samples.nexusmessagingtemporaloperation.callerpattern.caller.CallerStarter
6161
```
6262

6363
Expected output:

core/src/main/java/io/temporal/samples/nexusmessagingv2/callerpattern/caller/CallerStarter.java renamed to core/src/main/java/io/temporal/samples/nexusmessagingtemporaloperation/callerpattern/caller/CallerStarter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.temporal.samples.nexusmessagingv2.callerpattern.caller;
1+
package io.temporal.samples.nexusmessagingtemporaloperation.callerpattern.caller;
22

33
import io.temporal.client.WorkflowClient;
44
import io.temporal.client.WorkflowOptions;

core/src/main/java/io/temporal/samples/nexusmessagingv2/callerpattern/caller/CallerWorker.java renamed to core/src/main/java/io/temporal/samples/nexusmessagingtemporaloperation/callerpattern/caller/CallerWorker.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.temporal.samples.nexusmessagingv2.callerpattern.caller;
1+
package io.temporal.samples.nexusmessagingtemporaloperation.callerpattern.caller;
22

33
import io.temporal.client.WorkflowClient;
44
import io.temporal.envconfig.ClientConfigProfile;

core/src/main/java/io/temporal/samples/nexusmessagingv2/callerpattern/caller/CallerWorkflow.java renamed to core/src/main/java/io/temporal/samples/nexusmessagingtemporaloperation/callerpattern/caller/CallerWorkflow.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.temporal.samples.nexusmessagingv2.callerpattern.caller;
1+
package io.temporal.samples.nexusmessagingtemporaloperation.callerpattern.caller;
22

33
import io.temporal.workflow.WorkflowInterface;
44
import io.temporal.workflow.WorkflowMethod;

core/src/main/java/io/temporal/samples/nexusmessagingv2/callerpattern/caller/CallerWorkflowImpl.java renamed to core/src/main/java/io/temporal/samples/nexusmessagingtemporaloperation/callerpattern/caller/CallerWorkflowImpl.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
package io.temporal.samples.nexusmessagingv2.callerpattern.caller;
1+
package io.temporal.samples.nexusmessagingtemporaloperation.callerpattern.caller;
22

33
import io.temporal.failure.ApplicationFailure;
4-
import io.temporal.samples.nexusmessagingv2.callerpattern.service.Language;
5-
import io.temporal.samples.nexusmessagingv2.callerpattern.service.NexusGreetingService;
4+
import io.temporal.samples.nexusmessagingtemporaloperation.callerpattern.service.Language;
5+
import io.temporal.samples.nexusmessagingtemporaloperation.callerpattern.service.NexusGreetingService;
66
import io.temporal.workflow.NexusOperationOptions;
77
import io.temporal.workflow.NexusServiceOptions;
88
import io.temporal.workflow.Workflow;

core/src/main/java/io/temporal/samples/nexusmessagingv2/ondemandpattern/handler/GreetingActivity.java renamed to core/src/main/java/io/temporal/samples/nexusmessagingtemporaloperation/callerpattern/handler/GreetingActivity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
package io.temporal.samples.nexusmessagingv2.ondemandpattern.handler;
1+
package io.temporal.samples.nexusmessagingtemporaloperation.callerpattern.handler;
22

33
import io.temporal.activity.ActivityInterface;
44
import io.temporal.activity.ActivityMethod;
5-
import io.temporal.samples.nexusmessagingv2.ondemandpattern.service.Language;
5+
import io.temporal.samples.nexusmessagingtemporaloperation.callerpattern.service.Language;
66

77
@ActivityInterface
88
public interface GreetingActivity {

core/src/main/java/io/temporal/samples/nexusmessagingv2/ondemandpattern/handler/GreetingActivityImpl.java renamed to core/src/main/java/io/temporal/samples/nexusmessagingtemporaloperation/callerpattern/handler/GreetingActivityImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
package io.temporal.samples.nexusmessagingv2.ondemandpattern.handler;
1+
package io.temporal.samples.nexusmessagingtemporaloperation.callerpattern.handler;
22

3-
import io.temporal.samples.nexusmessagingv2.ondemandpattern.service.Language;
3+
import io.temporal.samples.nexusmessagingtemporaloperation.callerpattern.service.Language;
44
import java.util.EnumMap;
55
import java.util.Map;
66

core/src/main/java/io/temporal/samples/nexusmessagingv2/callerpattern/handler/GreetingWorkflow.java renamed to core/src/main/java/io/temporal/samples/nexusmessagingtemporaloperation/callerpattern/handler/GreetingWorkflow.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
package io.temporal.samples.nexusmessagingv2.callerpattern.handler;
1+
package io.temporal.samples.nexusmessagingtemporaloperation.callerpattern.handler;
22

3-
import io.temporal.samples.nexusmessagingv2.callerpattern.service.Language;
4-
import io.temporal.samples.nexusmessagingv2.callerpattern.service.NexusGreetingService;
3+
import io.temporal.samples.nexusmessagingtemporaloperation.callerpattern.service.Language;
4+
import io.temporal.samples.nexusmessagingtemporaloperation.callerpattern.service.NexusGreetingService;
55
import io.temporal.workflow.QueryMethod;
66
import io.temporal.workflow.SignalMethod;
77
import io.temporal.workflow.UpdateMethod;

0 commit comments

Comments
 (0)