@Produces(MediaType.TEXT_PLAIN)
public Response publishWorkflow(@FormParam("workflowName") String workflowName,
@FormParam("publishWorkflowName") String publishWorkflowName) {
AiravataRegistry2 airavataRegistry = RegPoolUtils.acquireRegistry(context);
try {
airavataRegistry.publishWorkflow(workflowName, publishWorkflowName);
Response.ResponseBuilder builder = Response.status(Response.Status.OK);
builder.entity("Workflow published successfully...");
return builder.build();
} catch (UserWorkflowDoesNotExistsException e) {
Response.ResponseBuilder builder = Response.status(Response.Status.BAD_REQUEST);