@@ -1125,9 +1125,11 @@ private static void initiateChildWorkflow(
1125
1125
ChildWorkflowData data ,
1126
1126
StartChildWorkflowExecutionCommandAttributes d ,
1127
1127
long workflowTaskCompletedEventId ) {
1128
+ @ SuppressWarnings ("deprecation" ) // Control is still used by some SDKs
1128
1129
StartChildWorkflowExecutionInitiatedEventAttributes .Builder a =
1129
1130
StartChildWorkflowExecutionInitiatedEventAttributes .newBuilder ()
1130
1131
.setInput (d .getInput ())
1132
+ .setControl (d .getControl ())
1131
1133
.setWorkflowTaskCompletedEventId (workflowTaskCompletedEventId )
1132
1134
.setNamespace (d .getNamespace ().isEmpty () ? ctx .getNamespace () : d .getNamespace ())
1133
1135
.setWorkflowExecutionTimeout (d .getWorkflowExecutionTimeout ())
@@ -2385,9 +2387,11 @@ private static void initiateExternalSignal(
2385
2387
SignalExternalData data ,
2386
2388
SignalExternalWorkflowExecutionCommandAttributes d ,
2387
2389
long workflowTaskCompletedEventId ) {
2390
+ @ SuppressWarnings ("deprecation" ) // Control is still used by some SDKs
2388
2391
SignalExternalWorkflowExecutionInitiatedEventAttributes .Builder a =
2389
2392
SignalExternalWorkflowExecutionInitiatedEventAttributes .newBuilder ()
2390
2393
.setWorkflowTaskCompletedEventId (workflowTaskCompletedEventId )
2394
+ .setControl (d .getControl ())
2391
2395
.setInput (d .getInput ())
2392
2396
.setNamespace (d .getNamespace ())
2393
2397
.setChildWorkflowOnly (d .getChildWorkflowOnly ())
@@ -2413,9 +2417,11 @@ private static void failExternalSignal(
2413
2417
SignalExternalWorkflowExecutionFailedCause cause ,
2414
2418
long notUsed ) {
2415
2419
SignalExternalWorkflowExecutionInitiatedEventAttributes initiatedEvent = data .initiatedEvent ;
2420
+ @ SuppressWarnings ("deprecation" ) // Control is still used by some SDKs
2416
2421
SignalExternalWorkflowExecutionFailedEventAttributes .Builder a =
2417
2422
SignalExternalWorkflowExecutionFailedEventAttributes .newBuilder ()
2418
2423
.setInitiatedEventId (data .initiatedEventId )
2424
+ .setControl (initiatedEvent .getControl ())
2419
2425
.setWorkflowExecution (initiatedEvent .getWorkflowExecution ())
2420
2426
.setCause (cause )
2421
2427
.setNamespace (initiatedEvent .getNamespace ());
@@ -2432,9 +2438,11 @@ private static void completeExternalSignal(
2432
2438
SignalExternalWorkflowExecutionInitiatedEventAttributes initiatedEvent = data .initiatedEvent ;
2433
2439
WorkflowExecution signaledExecution =
2434
2440
initiatedEvent .getWorkflowExecution ().toBuilder ().setRunId (runId ).build ();
2441
+ @ SuppressWarnings ("deprecation" ) // Control is still used by some SDKs
2435
2442
ExternalWorkflowExecutionSignaledEventAttributes .Builder a =
2436
2443
ExternalWorkflowExecutionSignaledEventAttributes .newBuilder ()
2437
2444
.setInitiatedEventId (data .initiatedEventId )
2445
+ .setControl (initiatedEvent .getControl ())
2438
2446
.setWorkflowExecution (signaledExecution )
2439
2447
.setNamespace (initiatedEvent .getNamespace ());
2440
2448
HistoryEvent event =
@@ -2450,9 +2458,11 @@ private static void initiateExternalCancellation(
2450
2458
CancelExternalData data ,
2451
2459
RequestCancelExternalWorkflowExecutionCommandAttributes d ,
2452
2460
long workflowTaskCompletedEventId ) {
2461
+ @ SuppressWarnings ("deprecation" ) // Control is still used by some SDKs
2453
2462
RequestCancelExternalWorkflowExecutionInitiatedEventAttributes .Builder a =
2454
2463
RequestCancelExternalWorkflowExecutionInitiatedEventAttributes .newBuilder ()
2455
2464
.setWorkflowTaskCompletedEventId (workflowTaskCompletedEventId )
2465
+ .setControl (d .getControl ())
2456
2466
.setNamespace (d .getNamespace ())
2457
2467
.setChildWorkflowOnly (d .getChildWorkflowOnly ())
2458
2468
.setWorkflowExecution (
@@ -2502,10 +2512,12 @@ private static void failExternalCancellation(
2502
2512
long notUsed ) {
2503
2513
RequestCancelExternalWorkflowExecutionInitiatedEventAttributes initiatedEvent =
2504
2514
data .initiatedEvent ;
2515
+ @ SuppressWarnings ("deprecation" ) // Control is still used by some SDKs
2505
2516
RequestCancelExternalWorkflowExecutionFailedEventAttributes .Builder a =
2506
2517
RequestCancelExternalWorkflowExecutionFailedEventAttributes .newBuilder ()
2507
2518
.setInitiatedEventId (data .initiatedEventId )
2508
2519
.setWorkflowExecution (initiatedEvent .getWorkflowExecution ())
2520
+ .setControl (initiatedEvent .getControl ())
2509
2521
.setCause (cause )
2510
2522
.setNamespace (initiatedEvent .getNamespace ());
2511
2523
HistoryEvent event =
0 commit comments