diff options
author | YuanHu <yuan.hu1@zte.com.cn> | 2018-03-16 11:28:03 +0800 |
---|---|---|
committer | YuanHu <yuan.hu1@zte.com.cn> | 2018-03-16 11:28:03 +0800 |
commit | 42bcd6b64dd6433ce52929013cf1fb450eba419c (patch) | |
tree | acc6b1c5bc2c31bc2f2b8aa34df690ae854c8498 /sdc-workflow-designer-server/src/main | |
parent | 0246959aeb2bd4cb04e00649a0378a846116fbf9 (diff) |
Get bpmn artifact from BE.
Get bpmn artifact from BE.
Issue-ID: SDC-1128
Change-Id: I33550c43f330f9fdaf6750ad4f4eefea0bebbdfd
Signed-off-by: YuanHu <yuan.hu1@zte.com.cn>
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); |