Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Loading