fix file already exist error

Issue-ID: SDC-412

Change-Id: I9719f5cb893d2cd0693e46a8598147d7b3c2b8d2
Signed-off-by: Lvbo163 <lv.bo163@zte.com.cn>
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/converter/Bpmn4Tosca2Bpmn.java b/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/converter/Bpmn4Tosca2Bpmn.java
index 7721eaa..efa36c3 100644
--- a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/converter/Bpmn4Tosca2Bpmn.java
+++ b/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/converter/Bpmn4Tosca2Bpmn.java
@@ -54,7 +54,7 @@
     }

 

     public static Path writeStringToFile(String content, Path targetPath) throws IOException {

-        return Files.write(targetPath, content.getBytes(), StandardOpenOption.CREATE_NEW);

+        return Files.write(targetPath, content.getBytes(), StandardOpenOption.CREATE);

     }

 

 }