String json_xml = getParameterFromPayload(body,"json_xml");
String svg_xml = getParameterFromPayload(body,"svg_xml");
String fileName = getParameterFromPayload(body,"fileName");
ObjectMapper objectMapper = new ObjectMapper();
JsonNode objectNode = objectMapper.readTree(json_xml);
String resFilePath = getBasePath(this.request)+"temp"+File.separator+"node_template.bpmn";;
String newFilePath = buildPath(body)+File.separator+fileName;
String staticFilePath = getBasePath(this.request)+"template"+File.separator+"node_template.bpmn";
//保存思想:因为save方法不一定保存成功,并且保存失败后会导致原有文件丢失,所以做了个临时保存,没问题再复制过去
FileUtil.copyFile(staticFilePath, resFilePath);