Skip to content

Commit 78c7fd7

Browse files
authored
Merge branch 'master' into 20260402-sdk-java-2780-activity-auto-discovery
2 parents e790f32 + 187b778 commit 78c7fd7

File tree

6 files changed

+19
-1
lines changed

6 files changed

+19
-1
lines changed

temporal-sdk/src/main/java/io/temporal/internal/statemachines/ChildWorkflowStateMachine.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ public static ChildWorkflowStateMachine newInstance(
145145
attributes, metadata, startedCallback, completionCallback, commandSink, stateMachineSink);
146146
}
147147

148+
@SuppressWarnings("deprecation")
148149
private ChildWorkflowStateMachine(
149150
StartChildWorkflowExecutionCommandAttributes startAttributes,
150151
UserMetadata metadata,

temporal-sdk/src/main/java/io/temporal/internal/statemachines/WorkflowStateMachines.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -971,6 +971,7 @@ public Functions.Proc newTimer(
971971
* @param completionCallback invoked when child reports completion or failure
972972
* @return cancellation callback that should be invoked to cancel the child
973973
*/
974+
@SuppressWarnings("deprecation")
974975
public Functions.Proc startChildWorkflow(
975976
StartChildWorkflowExecutionParameters parameters,
976977
Functions.Proc2<WorkflowExecution, Exception> startedCallback,

temporal-sdk/src/main/java/io/temporal/workflow/ChildWorkflowOptions.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ public static final class Builder {
6262

6363
private Builder() {}
6464

65+
@SuppressWarnings("deprecation")
6566
private Builder(ChildWorkflowOptions options) {
6667
if (options == null) {
6768
return;
@@ -91,7 +92,13 @@ private Builder(ChildWorkflowOptions options) {
9192
* Specify namespace in which workflow should be started.
9293
*
9394
* <p>TODO: Resolve conflict with WorkflowClient namespace.
95+
*
96+
* @deprecated Cross-namespace child workflow execution is disabled by default in Temporal
97+
* Server since version 1.30.1 (via {@code system.enableCrossNamespaceCommands} dynamic
98+
* config flag). Setting this option will fail unless that flag is explicitly re-enabled on
99+
* the server. This field may be removed at some point in the future.
94100
*/
101+
@Deprecated
95102
public Builder setNamespace(String namespace) {
96103
this.namespace = namespace;
97104
return this;
@@ -447,6 +454,13 @@ private ChildWorkflowOptions(
447454
this.priority = priority;
448455
}
449456

457+
/**
458+
* @deprecated Cross-namespace child workflow execution is disabled by default in Temporal Server
459+
* since version 1.30.1 (via {@code system.enableCrossNamespaceCommands} dynamic config flag).
460+
* Setting this option will fail unless that flag is explicitly re-enabled on the server. This
461+
* field may be removed at some point in the future.
462+
*/
463+
@Deprecated
450464
public String getNamespace() {
451465
return namespace;
452466
}

temporal-test-server/src/main/java/io/temporal/internal/testservice/StateMachines.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1169,6 +1169,7 @@ private static void childWorkflowCanceled(
11691169
ctx.addEvent(event);
11701170
}
11711171

1172+
@SuppressWarnings("deprecation")
11721173
private static void initiateChildWorkflow(
11731174
RequestContext ctx,
11741175
ChildWorkflowData data,

temporal-test-server/src/main/java/io/temporal/internal/testservice/TestWorkflowService.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1670,6 +1670,7 @@ public void signalWithStartWorkflowExecution(
16701670
}
16711671
}
16721672

1673+
@SuppressWarnings("deprecation")
16731674
public void signalExternalWorkflowExecution(
16741675
String signalId,
16751676
SignalExternalWorkflowExecutionCommandAttributes commandAttributes,

0 commit comments

Comments
 (0)