@@ -159,6 +159,8 @@ static WorkflowClient newInstance(WorkflowServiceStubs service, WorkflowClientOp
159159 * @param runId Run id of the workflow execution.
160160 * @return Stub that implements workflowInterface and can be used to signal, update, or query it.
161161 * @deprecated Use {@link #newWorkflowStub(Class, WorkflowTargetOptions)} instead.
162+ * @apiNote This method is deprecated because the returned stub does not properly account for the
163+ * runId.
162164 */
163165 @ Deprecated
164166 <T > T newWorkflowStub (Class <T > workflowInterface , String workflowId , Optional <String > runId );
@@ -204,6 +206,8 @@ static WorkflowClient newInstance(WorkflowServiceStubs service, WorkflowClientOp
204206 * @param workflowType type of the workflow. Optional as it is used for error reporting only.
205207 * @return Stub that can be used to start workflow and later to signal or query it.
206208 * @deprecated Use {@link #newUntypedWorkflowStub(WorkflowTargetOptions, Optional)} instead.
209+ * @apiNote This method is deprecated because the returned stub does not properly account for the
210+ * runId.
207211 */
208212 @ Deprecated
209213 WorkflowStub newUntypedWorkflowStub (
@@ -217,6 +221,8 @@ WorkflowStub newUntypedWorkflowStub(
217221 * @param workflowType type of the workflow. Optional as it is used for error reporting only.
218222 * @return Stub that can be used to start workflow and later to signal or query it.
219223 * @deprecated Use {@link #newUntypedWorkflowStub(WorkflowTargetOptions, Optional)} instead.
224+ * @apiNote This method is deprecated because the returned stub does not properly account for the
225+ * runId.
220226 */
221227 WorkflowStub newUntypedWorkflowStub (WorkflowExecution execution , Optional <String > workflowType );
222228
0 commit comments