diff --git a/core/src/main/java/io/temporal/samples/nexusmessagingtemporaloperation/callerpattern/README.md b/core/src/main/java/io/temporal/samples/nexusmessagingtemporaloperation/callerpattern/README.md index 586c4914..ffbbe9f5 100644 --- a/core/src/main/java/io/temporal/samples/nexusmessagingtemporaloperation/callerpattern/README.md +++ b/core/src/main/java/io/temporal/samples/nexusmessagingtemporaloperation/callerpattern/README.md @@ -15,13 +15,12 @@ The caller Workflow: ### Running -This sample requires a Temporal dev server build that supports Workflow Update callbacks. Download the compatible -binary from the [Temporal CLI pre-release instructions](https://docs.temporal.io/standalone-nexus-operation#temporal-cli-support). +Use [Temporal CLI v1.10.0 or later](https://docs.temporal.io/cli/setup-cli). Start the Temporal dev server with the required namespaces pre-created and Workflow Update callbacks enabled: ```bash -./temporal server start-dev \ +temporal server start-dev \ --dynamic-config-value history.enableUpdateCallbacks=true \ --dynamic-config-value history.enableCHASMSignalBacklinks=true \ --namespace nexus-messaging-handler-namespace \ @@ -31,7 +30,7 @@ Start the Temporal dev server with the required namespaces pre-created and Workf Create the Nexus endpoint: ```bash -./temporal operator nexus endpoint create \ +temporal operator nexus endpoint create \ --name nexus-messaging-nexus-endpoint \ --target-namespace nexus-messaging-handler-namespace \ --target-task-queue nexus-messaging-handler-task-queue diff --git a/core/src/main/java/io/temporal/samples/nexusmessagingtemporaloperation/ondemandpattern/README.md b/core/src/main/java/io/temporal/samples/nexusmessagingtemporaloperation/ondemandpattern/README.md index 5e16ca05..a2e4bdac 100644 --- a/core/src/main/java/io/temporal/samples/nexusmessagingtemporaloperation/ondemandpattern/README.md +++ b/core/src/main/java/io/temporal/samples/nexusmessagingtemporaloperation/ondemandpattern/README.md @@ -19,13 +19,12 @@ The caller Workflow: ### Running -This sample requires a Temporal dev server build that supports Workflow Update callbacks. Download the compatible -binary from the [Temporal CLI pre-release instructions](https://docs.temporal.io/standalone-nexus-operation#temporal-cli-support). +Use [Temporal CLI v1.10.0 or later](https://docs.temporal.io/cli/setup-cli). Start the Temporal dev server with the required namespaces pre-created and Workflow Update callbacks enabled: ```bash -./temporal server start-dev \ +temporal server start-dev \ --dynamic-config-value history.enableUpdateCallbacks=true \ --dynamic-config-value history.enableCHASMSignalBacklinks=true \ --dynamic-config-value history.enableSignalWithStartFromWorkflow=true \ @@ -36,7 +35,7 @@ Start the Temporal dev server with the required namespaces pre-created and Workf Create the Nexus endpoint: ```bash -./temporal operator nexus endpoint create \ +temporal operator nexus endpoint create \ --name nexus-messaging-nexus-endpoint \ --target-namespace nexus-messaging-handler-namespace \ --target-task-queue nexus-messaging-handler-task-queue diff --git a/core/src/main/java/io/temporal/samples/nexusstandalone/README.MD b/core/src/main/java/io/temporal/samples/nexusstandalone/README.MD index 0f52c725..ed3d5407 100644 --- a/core/src/main/java/io/temporal/samples/nexusstandalone/README.MD +++ b/core/src/main/java/io/temporal/samples/nexusstandalone/README.MD @@ -26,13 +26,12 @@ from the environment (and optionally a profile from `temporal.toml`). > [!NOTE] > Standalone Nexus Operations require a server that supports this feature. For local development, use Temporal CLI -> v1.9.1 or later and enable SANO as shown below. +> v1.10.0 or later. 1. Start a [Temporal dev server](https://docs.temporal.io/cli/setup-cli) with the required namespaces pre-created: ```bash temporal server start-dev \ - --dynamic-config-value "nexusoperation.enableStandalone=true" \ --namespace my-caller-namespace \ --namespace my-handler-namespace ``` diff --git a/core/src/main/java/io/temporal/samples/nexusstandaloneactivity/README.md b/core/src/main/java/io/temporal/samples/nexusstandaloneactivity/README.md index fb84bd6a..42b41414 100644 --- a/core/src/main/java/io/temporal/samples/nexusstandaloneactivity/README.md +++ b/core/src/main/java/io/temporal/samples/nexusstandaloneactivity/README.md @@ -1,9 +1,8 @@ ## Nexus Operation Backed by a Standalone Activity -> [!WARNING] -> Standalone Nexus Operations are in pre-release and may be subject to backwards-incompatible changes. -> They require a server version that supports this feature. Use the dev server build at: -> https://github.com/temporalio/cli/releases/tag/v1.7.4-standalone-nexus-operations. +> [!NOTE] +> For local development, use [Temporal CLI v1.10.0 or later](https://docs.temporal.io/cli/setup-cli) +> and enable Activity callbacks as shown below. This sample shows how to implement a Nexus operation whose backing execution is a **standalone Activity**. `TemporalOperationHandler` maps the Temporal execution onto the Nexus operation: @@ -28,11 +27,11 @@ from the environment (and optionally a profile from `temporal.toml`). ### Run locally against a dev server -1. Start the [Temporal dev server build that supports standalone Nexus operations](https://docs.temporal.io/standalone-nexus-operation#temporal-cli-support) +1. Start the Temporal dev server with the required namespaces pre-created and Activity callbacks enabled: ```bash - ./temporal server start-dev \ + temporal server start-dev \ --dynamic-config-value activity.enableCallbacks=true \ --namespace my-caller-namespace \ --namespace my-handler-namespace @@ -41,7 +40,7 @@ from the environment (and optionally a profile from `temporal.toml`). 2. Create a Nexus endpoint that routes to the handler namespace and the worker's task queue: ```bash - ./temporal operator nexus endpoint create \ + temporal operator nexus endpoint create \ --name my-nexus-endpoint \ --target-namespace my-handler-namespace \ --target-task-queue nexus-handler-queue diff --git a/core/src/test/java/io/temporal/samples/nexusstandaloneactivity/NexusStandaloneActivityTest.java b/core/src/test/java/io/temporal/samples/nexusstandaloneactivity/NexusStandaloneActivityTest.java index 1857812d..759ebbfd 100644 --- a/core/src/test/java/io/temporal/samples/nexusstandaloneactivity/NexusStandaloneActivityTest.java +++ b/core/src/test/java/io/temporal/samples/nexusstandaloneactivity/NexusStandaloneActivityTest.java @@ -21,7 +21,7 @@ import org.junit.jupiter.api.Test; public class NexusStandaloneActivityTest { - private static final String DEV_SERVER_VERSION = "v1.7.4-standalone-nexus-operations"; + private static final String DEV_SERVER_VERSION = "v1.10.0"; private static TestWorkflowEnvironment testEnv; private static Endpoint endpoint;