formFields.addValue(formField.getName(),sb.toString());
sb.setLength(0);
}
OutputDocument outputDocument=new OutputDocument(source);
outputDocument.replace(formFields);
//System.out.println("html : " + outputDocument.toString());
// *.form save
String defVerId = pm.addProcessDefinition(definitionName, Integer.parseInt(version), description, false, definition, savingFolder, belongingDefinitionId, definitionAlias, objectType);
String DEFINITION_ROOT = GlobalContext.getPropertyString(
"server.definition.path",
"./uengine/definition/"
);
String defverid = defVerId.substring(0, defVerId.lastIndexOf("@"));
String [] defVerIdArr = defVerId.split("@");
// String defverid = defVerIdArr[0];
String processDefinitionVersionID = defVerIdArr[1];
// *.html save
String HTML_PATH = DEFINITION_ROOT + defverid +".html";
OutputStreamWriter bw = null;
try{
bw = new OutputStreamWriter(new FileOutputStream(HTML_PATH), "UTF-8");
bw.write(outputDocument.toString());
bw.close();
}catch(Exception e){
throw e;
}finally{
if(bw!=null)