From e92977d61419f5da936d8d395ce4281d53c1d5f1 Mon Sep 17 00:00:00 2001 From: Jackie Han Date: Wed, 20 Dec 2023 14:10:53 -0800 Subject: [PATCH] update javadoc Signed-off-by: Jackie Han --- .../flowframework/rest/RestCreateWorkflowAction.java | 9 ++++++++- .../flowframework/transport/WorkflowRequest.java | 4 ++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/opensearch/flowframework/rest/RestCreateWorkflowAction.java b/src/main/java/org/opensearch/flowframework/rest/RestCreateWorkflowAction.java index a70b0104b..d618e2183 100644 --- a/src/main/java/org/opensearch/flowframework/rest/RestCreateWorkflowAction.java +++ b/src/main/java/org/opensearch/flowframework/rest/RestCreateWorkflowAction.java @@ -97,7 +97,14 @@ protected RestChannelConsumer prepareRequest(RestRequest request, NodeClient cli boolean validation = request.paramAsBoolean(VALIDATION, true); boolean provision = request.paramAsBoolean(PROVISION_WORKFLOW, false); - WorkflowRequest workflowRequest = new WorkflowRequest(workflowId, template, validation, provision, requestTimeout, maxWorkflows); + WorkflowRequest workflowRequest = new WorkflowRequest( + workflowId, + template, + validation, + provision, + requestTimeout, + maxWorkflows + ); return channel -> client.execute(CreateWorkflowAction.INSTANCE, workflowRequest, ActionListener.wrap(response -> { XContentBuilder builder = response.toXContent(channel.newBuilder(), ToXContent.EMPTY_PARAMS); diff --git a/src/main/java/org/opensearch/flowframework/transport/WorkflowRequest.java b/src/main/java/org/opensearch/flowframework/transport/WorkflowRequest.java index 063cdbac2..7b6f60f7a 100644 --- a/src/main/java/org/opensearch/flowframework/transport/WorkflowRequest.java +++ b/src/main/java/org/opensearch/flowframework/transport/WorkflowRequest.java @@ -54,7 +54,7 @@ public class WorkflowRequest extends ActionRequest { private Integer maxWorkflows; /** - * Instantiates a new WorkflowRequest, defaults validation to false and set requestTimeout and maxWorkflows to null + * Instantiates a new WorkflowRequest, set validation to false and set requestTimeout and maxWorkflows to null * @param workflowId the documentId of the workflow * @param template the use case template which describes the workflow */ @@ -63,7 +63,7 @@ public WorkflowRequest(@Nullable String workflowId, @Nullable Template template) } /** - * Instantiates a new WorkflowRequest and defaults validation to false + * Instantiates a new WorkflowRequest and set validation to false * @param workflowId the documentId of the workflow * @param template the use case template which describes the workflow * @param requestTimeout timeout of the request