System.out.print(getDefinitionId());
if (UEngineUtil.isNotEmpty(getDefinitionId())) {
saveDialog.removeFieldDescriptor("Alias");
}
InputForm inputForm = (new InputForm(saveDialog));
ProcessDefinition def = definition;
String definitionName = def.getName().getText();
String alias = def.getAlias();
int version=def.getVersion();
SaveDialogInfo defaultSettings = new SaveDialogInfo();
defaultSettings.setName(definitionName);
defaultSettings.setAlias(alias);
defaultSettings.setVersion(version+1);
defaultSettings.setAuthor(getRevisionInfo());
//ObjectInstance objInstance = saveDi
/*Instance defaultSettings = saveDialog.createInstance();{
ProcessDefinition def = (ProcessDefinition)getProcessDefinitionDesigner().getActivity();
String definitionName = def.getName().getText();
String alias = def.getAlias();
int version=def.getVersion();
defaultSettings.setFieldValue("Name", definitionName);
defaultSettings.setFieldValue("Alias", alias);
defaultSettings.setFieldValue("Version", new Integer(version+1));
defaultSettings.setFieldValue("Author", getRevisionInfo());
}*/
ObjectInstance objInstance = (ObjectInstance)saveDialog.createInstance();
objInstance.setObject(defaultSettings);
inputForm.setInstance(objInstance);
inputForm.postInputDialog(this, "Confirm", "Confirm", saveDialog.getName());
return emptyIfSuccess.isEmpty();
}