Get bpmn artifact from BE. 59/36159/1
authorYuanHu <yuan.hu1@zte.com.cn>
Fri, 16 Mar 2018 03:28:03 +0000 (11:28 +0800)
committerYuanHu <yuan.hu1@zte.com.cn>
Fri, 16 Mar 2018 03:28:03 +0000 (11:28 +0800)
Get bpmn artifact from BE.

Issue-ID: SDC-1128

Change-Id: I33550c43f330f9fdaf6750ad4f4eefea0bebbdfd
Signed-off-by: YuanHu <yuan.hu1@zte.com.cn>
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);