Get bpmn artifact from BE.
[sdc/sdc-workflow-designer.git] / sdc-workflow-designer-server / src / main / java / org / onap / sdc / workflowdesigner / resources / WorkflowModelerResource.java
index db9b80d..fc3a2b3 100644 (file)
@@ -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);