diff options
Diffstat (limited to 'sdc-workflow-designer-server/src/main')
-rw-r--r-- | sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/WorkflowModelerResource.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/WorkflowModelerResource.java b/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/WorkflowModelerResource.java index db9b80d3..fc3a2b37 100644 --- a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/WorkflowModelerResource.java +++ b/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/WorkflowModelerResource.java @@ -74,9 +74,8 @@ public class WorkflowModelerResource { response = String.class)}) @Timed public Response getModel(@ApiParam(value = "id") @PathParam("id") String id) { - String filePath = "model.json"; try { - String json = FileCommonUtils.readString(filePath); + String json = FileCommonUtils.readString(WORKFLOW_JSON_TEMP_FILE_NAME); return Response.status(Response.Status.OK).entity(json).build(); } catch (IOException e) { logger.error("get workflow failed.", e); |