设为首页 加入收藏

TOP

JBPM 6.0 Final使用心得笔记(二)
2015-02-15 13:01:51 来源: 作者: 【 】 浏览:81
Tags:JBPM 6.0 Final 使用 心得 笔记
re.js
?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());
?String revisedXmlModel = outputStream.toString();
?revisedXmlModel = revisedXmlModel.replace("utf-8-start-chars", "&#");
?String jsonStr = profile.createUnmarshaller().parseModel(revisedXmlModel, profile, "ReadOnlyService");


3,界面上js代码


editor_parameters=source.eva lJSON();
ORYX.EDITOR = new ORYX.Editor(editor_parameters);


完成对json的显示。


首页 上一页 1 2 下一页 尾页 2/2/2
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇Spring Security异常之You must p.. 下一篇C++基本语法笔记

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: