|
10 | 10 | import java.util.List; |
11 | 11 | import java.util.function.Function; |
12 | 12 |
|
13 | | -/** |
14 | | - * Shared helper for starting an activity from a Nexus operation and (in future) attaching links to |
15 | | - * the operation context. Mirrors {@link NexusStartWorkflowHelper} for activities. |
16 | | - */ |
| 13 | +/** Shared helper for starting an activity from a Nexus operation. */ |
17 | 14 | @Experimental |
18 | 15 | public class NexusStartActivityHelper { |
19 | 16 |
|
20 | 17 | /** |
21 | | - * Starts an activity via the provided invoker function and returns the response. |
| 18 | + * Starts an activity via the provided invoker function and returns the response. The root |
| 19 | + * activity invoker records the link from {@code StartActivityExecutionResponse}; the Nexus task |
| 20 | + * handler attaches that link to the operation response. |
22 | 21 | * |
23 | | - * <p>The link-attachment block is intentionally a no-op in this revision; see the TODO inside. |
24 | | - * |
25 | | - * @param ctx the operation context (link attachment is deferred — see TODO) |
| 22 | + * @param ctx the operation context |
26 | 23 | * @param details the operation start details containing requestId, callback, links |
27 | 24 | * @param activityType the activity type name |
28 | 25 | * @param args the activity arguments |
@@ -53,14 +50,7 @@ public static NexusStartActivityResponse startActivityAndAttachLinks( |
53 | 50 | options, |
54 | 51 | header); |
55 | 52 |
|
56 | | - NexusStartActivityResponse response = invoker.apply(nexusRequest); |
57 | | - |
58 | | - // TODO: Attach activity-event link when server-side activity link support is available. |
59 | | - // No StartActivityResponseLink analog exists and there is no verified activity-event link path |
60 | | - // in LinkConverter. Do NOT copy the synthetic workflow-event link fabrication from |
61 | | - // NexusStartWorkflowHelper; Nexus operations function correctly without diagnostic links. |
62 | | - |
63 | | - return response; |
| 53 | + return invoker.apply(nexusRequest); |
64 | 54 | } |
65 | 55 |
|
66 | 56 | private NexusStartActivityHelper() {} |
|
0 commit comments