@Produces(MediaType.TEXT_PLAIN)
public Response addWorkflowInstanceNode(@FormParam("workflowInstanceId") String workflowInstanceId,
@FormParam("nodeId") String nodeId) {
AiravataRegistry2 airavataRegistry = RegPoolUtils.acquireRegistry(context);
try {
airavataRegistry.addWorkflowInstanceNode(workflowInstanceId, nodeId);
Response.ResponseBuilder builder = Response.status(Response.Status.OK);
builder.entity("Workflow instance node added successfully...");
return builder.build();
} catch (Throwable e) {
return WebAppUtil.reportInternalServerError(ResourcePathConstants.ProvenanceResourcePathConstants.ADD_WORKFLOWINSTANCENODE, e);