//ProcessDefinition definition = (ProcessDefinition) GlobalContext.deserialize(definitionXml, null);
// ProcessInstance instance = new DefaultProcessInstance();
//instance.setProcessTransactionContext(getTransactionContext());
ActivityViewer processDefinitionViewer = DefaultActivityViewer.createViewer(definition);
return processDefinitionViewer.render(definition, null, options).toString();
//return ProcessDefinitionViewer.getInstance().render(getDefinition(processDefinition), null, options).toString();
//}catch(Exception e){
// ByteArrayOutputStream bao = new ByteArrayOutputStream();
// return "반영되고있니???:"+e.getMessage();
// }