欢迎使用普元产品知识库,本知识库包含普元应用开发平台EOSPlatform,流程平台BPS,企业服务总线ESB,微服务平台Microservice,运维管理平台Devops,数据集成平台DI
欢迎使用普元文档库
一、环境:EOS Platform 7.6 开发版(未装Coframe)、Mysql5.5,安装时已初始化
二、所用介质:操作步骤里的介质均从 https://pan.baidu.com/s/1OEoy0Bvpx7P7aLA_SsRGXw Platform7.6目录下获取
三、操作步骤:
1、配置Maven仓库
1)获取"Maven-storage.zip",解压到E:\PL76Maven,将解压出的storage-eosplatform76.zip,再解压到storage-eosplatform76
2)修改settings.xml,添加E:\PL76Maven\Maven-storage\storage-eosplatform76,位置如下:
<localRepository>E:\PL76Maven\Maven-storage\storage-eosplatform76</localRepository>
3)打开Studio—>窗口—>首选项—>Maven—>User Settings,选择settings.xml
2、导入coframe源码:
1)获取"开源组件.zip",解压后coframe文件夹里放置的是coframe源代码
2)Studio,资源管理器空白处,右键,导入—>现有项目到工作空间—>下一步—>选择根目录,选择coframe文件夹
确定,导入coframe源码
3、执行coframe数据库初始化脚本
执行apache-tomcat-7.0.54\webapps\default\WEB-INF\_srv\work\user\org.gocom.components.coframe.auth\META-INF\scripts下coframe和coframe_sample里的Mysql初始化脚本
执行apache-tomcat-7.0.54\webapps\default\WEB-INF\_srv\work\user\org.gocom.components.coframe.bps.om\META-INF\scripts下coframe_bps和coframe_bps_sample下的Mysql初始化脚本
4、拷贝jar包:
将com.primeton.components.coframe.base-4.0.1.jar 和 com.primeton.studio.entity.core-7.1.4.0.jar 放到apache-tomcat-7.0.54\webapps\default\WEB-INF\lib目录里
上述两个Jar包是eos platform7.6 勾选coframe安装,默认带有的
5、修改流程相关的“组织机构接口实现类”和“权限接口实现类”
启动Server,登录Governor—>BPS引擎配置—>扩展配置,
组织机构接口实现类,改为:org.gocom.components.coframe.bps.om.WFOMServiceImpl
权限接口实现类,改为:org.gocom.components.coframe.bps.om.WFOMPermissionImpl
5、效果验证:
重启Server,访问http://127.0.0.1:8080/default/auth/login/login.jsp,用sysadmin/000000登录,出现coframe首页
常见问题解决方案:
1、若导入Coframe源码报错,请在资源管理器—>选中导入的一个项目—>右键—>Maven—>Update Project...,更新如下两个项目
2、将未登录时不拦截页面修改成coframe页面的配置步骤:
1)Governor—>配置—>HTTP 接入,未登录时跳转页面,改为:/coframe/auth/login/login.jsp
不拦截Url,添加:**/org.gocom.components.cof rame.auth.LoginManager.login.biz.ext,**/org.gocom. components.coframe.auth.login.login.flow,/coframe/ auth/login/login.jsp,和其他配置用英文逗号,隔开
2)修改apache-tomcat-7.0.54\webapps\default\WEB-INF\web.xml,将bps/wfclient/index.jsp改为coframe/index.jsp
修改前
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
<welcome-file>bps/wfclient/index.jsp</welcome-file>
</welcome-file-list>
修改后:
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
<welcome-file>coframe/index.jsp</welcome-file>
</welcome-file-list>
3)效果验证:重启server,访问:http://127.0.0.1:8080/default,出现coframe登录页面