Skip to content

Commit

Permalink
Go/Java tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
dandavison authored and stephanos committed Dec 19, 2024
1 parent 1270d18 commit bb7d1f3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions docs/develop/go/message-passing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ Minimum Temporal Server version [Temporal Server version 1.26](https://github.co
[send an Update](/develop/go/message-passing#send-update-from-client) that checks whether an already-running Workflow with that ID exists:

- If the Workflow exists, the Update is processed.
- If the Workflow does not exist, a new Workflow Execution starts with the given ID, and the Update is processed immediately after.
- If the Workflow does not exist, a new Workflow Execution is started with the given ID, and the Update is processed immediately after.

Use the [`Client.UpdateWithStartWorkflow`](https://pkg.go.dev/go.temporal.io/sdk/client#Client.UpdateWithStartWorkflow) API call.
It returns once the requested Update wait stage has been reached; or when a provided context times out.
Expand All @@ -412,8 +412,8 @@ You will need to provide:

- [`Client.NewWithStartWorkflowOperation`](https://pkg.go.dev/go.temporal.io/sdk/client#Client.NewWithStartWorkflowOperation).
Specify the workflow options, method and arguments.
Note that a `WithStartWorkflowOperation` can only be executed once.
Re-using a previously executed operation returns an error from `UpdateWithStartWorkflow`.
Note that a `WithStartWorkflowOperation` can only be used once.
Re-using a previously used operation returns an error from `UpdateWithStartWorkflow`.

The following example shows the creation, configuration, and use of UpdateWithStart:

Expand Down
6 changes: 3 additions & 3 deletions docs/develop/java/message-passing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ Minimum Temporal Server version [Temporal Server version 1.26](https://github.co
[send an Update](/develop/java/message-passing#send-update-from-client) that checks whether an already-running Workflow with that ID exists:

- If the Workflow exists, the Update is processed.
- If the Workflow does not exist, a new Workflow Execution starts with the given ID, and the Update is processed immediately after.
- If the Workflow does not exist, a new Workflow Execution is started with the given ID, and the Update is processed immediately after.

Use the [`startUpdateWithStart`](https://javadoc.io/doc/io.temporal/temporal-sdk/latest/io/temporal/client/WorkflowClient.html#startUpdateWithStart(io.temporal.workflow.Functions.Func,io.temporal.client.UpdateOptions,io.temporal.client.WithStartWorkflowOperation)) WorkflowClient API.
It returns once the requested Update wait stage has been reached; or when the request times out.
Expand All @@ -420,8 +420,8 @@ You will need to provide:

- [`WithStartWorkflowOperation`](https://javadoc.io/doc/io.temporal/temporal-sdk/latest/io/temporal/client/WithStartWorkflowOperation.html).
Specify the workflow method.
Note that a `WithStartWorkflowOperation` can only be executed once.
Re-using a previously executed operation returns an error from `startUpdateWithStart`.
Note that a `WithStartWorkflowOperation` can only be used once.
Re-using a previously used operation returns an error from `startUpdateWithStart`.

For example:

Expand Down

0 comments on commit bb7d1f3

Please sign in to comment.