您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 销售管理 > OpenCms621-jBPM312模块使用手册-朗华世
第1页JBPM模块使用手册北京朗华世纪科技发展有限公司www.langhua.cn2006年10月第2页第一章安装本章介绍如何将JBPM安装到OpenCms中,该版本目前测试通过的环境是Tomcat5.5.x,MySQL4.1.x,OpenCms6.2.x。1.确认系统已安装cn.langhua.opencms.jbpm_2.0.x.zip模块。确认的方法是打开模块管理,检查是否有“包名称”为cn.langhua.opencms.jbpm_2.0.x.zip的模块。如果有,那么可以进入下一步。如果没有,请向北京朗华世纪科技发展有限公司索取该模块,并安装到系统中,安装完毕以后请重启服务。注意:导入模块的时候,请在根站点下导入。2.修改Tomcat配置1.拷贝与所使用的数据库相匹配的JDBC驱动至{tomcat_home}\common\lib\目录下,这里以MySQL4.1.x为例子,需要拷贝mysql-connector-java-3.1.12-bin.jar文件至{tomcat_home}\common\lib。2.定义数据源。以下是以MySQL4.1x为例的修改:{tomcat_home}\conf\context.xml文件,如没有该文件请手动创建。文件内容如下:ContextResourcename=JbpmDSauth=Containertype=javax.sql.DataSourcemaxActive=5maxIdle=3maxWait=2000username=***password=***driverClassName=com.mysql.jdbc.Driverurl=jdbc:mysql://localhost:3306/Jbpm?autoReconnect=true//Context技巧:如果使用其它数据源名称,你还要修改/system/modules/cn.langhua.opencms.jbpm/classes/下的hibernate.cfg.xml中的数据源设置。3.修改WEB-INF目录下的web.xml文件。文件内容如下:?xmlversion=1.0encoding=ISO-8859-1?!DOCTYPEweb-appPUBLIC-//SunMicrosystems,Inc.//DTDWebApplication2.3//ENhttp://java.sun.com/dtd/web-app_2_3.dtd第3页web-appdisplay-nameOpenCms/display-namedescriptionOpenCms,theOpenSourceContentManagementSystem.(c)2005AlkaconSoftwareGmbHwithcontributionsfromtheOpenCmscommunity.FormoredetailsaboutOpenCms,pleaseseehttp://www.opencms.org/.FormoredetailsaboutAlkaconSoftwareGmbH,pleaseseehttp://www.alkacon.com/./description!--Changingtheservletnamefromopencmstosomethingelserequires3changesinthisfile.Forexample,tochangetheservletnametomycmsyoumust:1.Changethecontext-paramcalledOpenCmsServletfrom/opencms/*to/mycms/*2.Changetheservlet-mappingforOpenCmsServletfrom/opencms/*to/mycms/*3.Changetheerror-pagesettingforthe404errorfrom/opencms/handle404to/mycms/handle404--context-paramparam-nameOpenCmsServlet/param-nameparam-value/cms/*/param-value/context-paramcontext-paramparam-nameDefaultWebApplication/param-nameparam-valueROOT/param-value/context-paramfilterfilter-nameLogFilter/filter-namefilter-classorg.jbpm.webapp.filter.LogFilter/filter-class/filterfilterfilter-nameJbpmContextFilter/filter-namefilter-classorg.jbpm.web.JbpmContextFilter/filter-class/filterfilter-mapping第4页filter-nameLogFilter/filter-nameurl-pattern/*/url-pattern/filter-mappingfilter-mappingfilter-nameJbpmContextFilter/filter-nameurl-pattern/*/url-pattern/filter-mapping!--Uncommentthisparameterincaseyouchangethewebapplicationcontextusinganapplicationserverspecificdeploymentdescriptor.E.g.inJboss,youcouldusethejboss-web.xmlfiletodeployopencmsunderthecontext'myopencms'butstillkeepthefilesinthefolder'opencms.war'context-paramparam-nameWebApplicationContext/param-nameparam-valuemyopencms/param-value/context-param--listenerlistener-classorg.opencms.main.OpenCmsListener/listener-class/listenerservletservlet-nameOpenCmsServlet/servlet-namedescriptionThemainservletthathandlesallrequeststotheOpenCmsVFS./descriptionservlet-classorg.opencms.main.OpenCmsServlet/servlet-classload-on-startup1/load-on-startup/servletservletservlet-nameOpenCmsServletErrorHandler/servlet-namedescriptionTheerrorhandlingservlet,alsoserversastriggerforstaticexportrequests./descriptionservlet-classorg.opencms.main.OpenCmsServletErrorHandler/servlet-classload-on-startup0/load-on-startup/servletservlet-mapping第5页servlet-nameOpenCmsServlet/servlet-nameurl-pattern/cms/*/url-pattern/servlet-mappingservlet-mappingservlet-nameOpenCmsServletErrorHandler/servlet-nameurl-pattern/opencms-errorhandler/*/url-pattern/servlet-mapping!--JbpmThreadsServlet--servletservlet-nameJbpmThreadsServlet/servlet-nameservlet-classorg.jbpm.web.JbpmThreadsServlet/servlet-classload-on-startup1/load-on-startup/servletservlet-mappingservlet-nameJbpmThreadsServlet/servlet-nameurl-pattern/threads/url-pattern/servlet-mapping!--jBPMFileServlet--servletservlet-nameProcessImageServlet/servlet-nameservlet-classorg.jbpm.webapp.servlet.ProcessImageServlet/servlet-class/servletservlet-mappingservlet-nameProcessImageServlet/servlet-nameurl-pattern/processimage/url-pattern/servlet-mappingsession-configsession-timeout30/session-timeout/session-configwelcome-file-listwelcome-fileindex.jsp/welcome-filewelcome-fileindex.html/welcome-filewelcome-fileindex_export.html/welcome-file/welcome-file-listerror-pageerror-code404/error-codelocation/opencms-errorhandler/handle404/location/error-page第6页修改完重启Tomcat后修改生效。3.数据库3.1创建数据库进入数据库,手动创建名成为”jbpm”的数据库。3.2建数据库表登录到OpenCms后台,进入“管理”视图,为JBPM的管理按钮,点击进入会看到JBPM的管理视图:使用“创建数据库表”按钮,创建数据库表。数据库表创建成功,JBPM安装完成。error-pageerror-code500/error-codelocation/opencms-errorhandler/system/handler/handle500.html/location/error-pagetaglibtaglib-urihttp://www.opencms.org/taglib/cms/taglib-uritaglib-location/WEB-INF/opencms.tld/taglib-location/taglib/web-app第7页3.3导入流程这里以导入流程定义文件的形式来增加各种不同的流程,流程定义文件的后缀为“*.process”。通过JBPM
本文标题:OpenCms621-jBPM312模块使用手册-朗华世
链接地址:https://www.777doc.com/doc-2025 .html