Skip to content

Commit

Permalink
update javadoc
Browse files Browse the repository at this point in the history
Signed-off-by: Jackie Han <[email protected]>
  • Loading branch information
jackiehanyang committed Dec 20, 2023
1 parent eeb88a0 commit e92977d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand All @@ -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
Expand Down

0 comments on commit e92977d

Please sign in to comment.