库 01_EOS 普元 EOS Platform 7.6 开发版安装时没装coframe,后续再部署coframe源码的操作步骤

元数据起始

【解答】

一、环境:EOS Platform 7.6 开发版(未装Coframe)、Mysql5.5,安装时已初始化

二、所用介质:操作步骤里的介质均从 http://pan.baidu.com/s/1c1f4kTi Platform7.6目录下获取

三、操作步骤:

1、配置Maven仓库

1)获取"Maven-storage.zip",解压到E:\PL76Maven,将解压出的storage-eosplatform76.zip,再解压到storage-eosplatform76

库 01_EOS 普元 EOS Platform 7.6 开发版安装时没装coframe,后续再部署coframe源码的操作步骤

2)修改settings.xml,添加E:\PL76Maven\Maven-storage\storage-eosplatform76,位置如下:

<localRepository>E:\PL76Maven\Maven-storage\storage-eosplatform76</localRepository>

3)打开Studio—>窗口—>首选项—>Maven—>User Settings,选择settings.xml

库 01_EOS 普元 EOS Platform 7.6 开发版安装时没装coframe,后续再部署coframe源码的操作步骤

2、导入coframe源码:

1)获取"开源组件.zip",解压后coframe文件夹里放置的是coframe源代码

2)Studio,资源管理器空白处,右键,导入—>现有项目到工作空间—>下一步—>选择根目录,选择coframe文件夹

库 01_EOS 普元 EOS Platform 7.6 开发版安装时没装coframe,后续再部署coframe源码的操作步骤

确定,导入coframe源码

库 01_EOS 普元 EOS Platform 7.6 开发版安装时没装coframe,后续再部署coframe源码的操作步骤

3、执行coframe数据库初始化脚本

执行apache-tomcat-7.0.54\webapps\default\WEB-INF\_srv\work\user\org.gocom.components.coframe.auth\META-INF\scripts下coframecoframe_sample里的Mysql初始化脚本

执行apache-tomcat-7.0.54\webapps\default\WEB-INF\_srv\work\user\org.gocom.components.coframe.bps.om\META-INF\scripts下coframe_bpscoframe_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首页

库 01_EOS 普元 EOS Platform 7.6 开发版安装时没装coframe,后续再部署coframe源码的操作步骤

 

常见问题解决方案:

1、若导入Coframe源码报错,请在资源管理器—>选中导入的一个项目—>右键—>Maven—>Update Project...,更新如下两个项目

库 01_EOS 普元 EOS Platform 7.6 开发版安装时没装coframe,后续再部署coframe源码的操作步骤

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登录页面

库 01_EOS 普元 EOS Platform 7.6 开发版安装时没装coframe,后续再部署coframe源码的操作步骤