?js/conpressed/designer-plugins.js
?js/conpressed/designer-utils.js
?2,生成需要的json in java
?ProcessSummary ps = _dataServiceEntryPoint.getProcessById(pis.getDeploymentId(), pis.getProcessId());
?String bpmn2in = new String(Base64.decodeBase64(ps.getEncodedProcessSource()), "UTF-8");
?Definitions def = ((JbpmProfileImpl) profile).getDefinitions(bpmn2in);
?JBPMBpmn2ResourceImpl bpmn2resource = (JBPMBpmn2ResourceImpl) rSet.createResource(URI.createURI("virtual.bpmn2"));
?bpmn2resource.getContents().add(def);
?ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
?bpmn2resource.save(outputStream, new HashMap
3,界面上js代码
editor_parameters=source.eva lJSON();
ORYX.EDITOR = new ORYX.Editor(editor_parameters);
完成对json的显示。